proc: add option to mount only a pids subset
authorAlexey Gladkov <gladkov.alexey@gmail.com>
Sun, 19 Apr 2020 14:10:54 +0000 (16:10 +0200)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 22 Apr 2020 15:51:22 +0000 (10:51 -0500)
commit6814ef2d992af09451bbeda4770daa204461329e
treea0f3fad657964e61bc5c04e4add4e1255b33b7ed
parent24a71ce5c47f6b1b3cdacf544cb24220f5c3b7ef
proc: add option to mount only a pids subset

This allows to hide all files and directories in the procfs that are not
related to tasks.

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Reviewed-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/proc/generic.c
fs/proc/inode.c
fs/proc/root.c
include/linux/proc_fs.h