aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/root.c
diff options
context:
space:
mode:
authorAlexey Gladkov <[email protected]>2020-04-19 14:10:57 +0000
committerEric W. Biederman <[email protected]>2020-04-22 15:51:22 +0000
commite61bb8b36a287dddc71bdf30be775e7abcaa595c (patch)
treeb644552c07d20fb6cad94dcba7ce1de707d5c35c /fs/proc/root.c
parentproc: use human-readable values for hidepid (diff)
downloadkernel-e61bb8b36a287dddc71bdf30be775e7abcaa595c.tar.gz
kernel-e61bb8b36a287dddc71bdf30be775e7abcaa595c.zip
proc: use named enums for better readability
Signed-off-by: Alexey Gladkov <[email protected]> Reviewed-by: Alexey Dobriyan <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Eric W. Biederman <[email protected]>
Diffstat (limited to 'fs/proc/root.c')
-rw-r--r--fs/proc/root.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c
index 288093261b7f..ffebed1999e5 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
@@ -32,9 +32,9 @@
struct proc_fs_context {
struct pid_namespace *pid_ns;
unsigned int mask;
- int hidepid;
+ enum proc_hidepid hidepid;
int gid;
- int pidonly;
+ enum proc_pidonly pidonly;
};
enum proc_param {