diff options
| author | Alexey Dobriyan <[email protected]> | 2018-04-10 23:32:11 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-04-11 17:28:34 +0000 |
| commit | b77d70db659ad3aa662c80cff4475e773a531fbe (patch) | |
| tree | 453429d7d9b3ac146a5a76247a10ed5695e69c8b /fs/proc/internal.h | |
| parent | proc: add selftest for last field of /proc/loadavg (diff) | |
| download | kernel-b77d70db659ad3aa662c80cff4475e773a531fbe.tar.gz kernel-b77d70db659ad3aa662c80cff4475e773a531fbe.zip | |
proc: reject "." and ".." as filenames
Various subsystems can create files and directories in /proc with names
directly controlled by userspace.
Which means "/", "." and ".." are no-no.
"/" split is already taken care of, do the other 2 prohibited names.
Link: http://lkml.kernel.org/r/20180310001223.GB12443@avx2
Signed-off-by: Alexey Dobriyan <[email protected]>
Acked-by: Florian Westphal <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Cong Wang <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/internal.h')
0 files changed, 0 insertions, 0 deletions
