make sessionid permissions in /proc/*/task/* match those in /proc/*
Al Viro [Wed, 16 Feb 2011 02:24:05 +0000 (21:24 -0500)]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

fs/proc/base.c

index d49c4b5..b77236d 100644 (file)
@@ -3161,7 +3161,7 @@ static const struct pid_entry tid_base_stuff[] = {
        REG("oom_score_adj", S_IRUGO|S_IWUSR, proc_oom_score_adj_operations),
 #ifdef CONFIG_AUDITSYSCALL
        REG("loginuid",  S_IWUSR|S_IRUGO, proc_loginuid_operations),
-       REG("sessionid",  S_IRUSR, proc_sessionid_operations),
+       REG("sessionid",  S_IRUGO, proc_sessionid_operations),
 #endif
 #ifdef CONFIG_FAULT_INJECTION
        REG("make-it-fail", S_IRUGO|S_IWUSR, proc_fault_inject_operations),