summaryrefslogtreecommitdiff
path: root/init/main.c
diff options
context:
space:
mode:
authorMichal Clapinski <mclapinski@google.com>2021-11-08 18:35:59 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2021-11-09 10:02:53 -0800
commit5563cabdde7ee53c34ec7e5e0283bfcc9a1bc893 (patch)
tree7aa5212a7c84ab3df319c71b15b511204e6a3b4d /init/main.c
parent303f8e2d02002dbe331cab7813ee091aead3cd39 (diff)
ipc: check checkpoint_restore_ns_capable() to modify C/R proc files
This commit removes the requirement to be root to modify sem_next_id, msg_next_id and shm_next_id and checks checkpoint_restore_ns_capable instead. Since those files are specific to the IPC namespace, there is no reason they should require root privileges. This is similar to ns_last_pid, which also only checks checkpoint_restore_ns_capable. [akpm@linux-foundation.org: ipc/ipc_sysctl.c needs capability.h for checkpoint_restore_ns_capable()] Link: https://lkml.kernel.org/r/20210916163717.3179496-1-mclapinski@google.com Signed-off-by: Michal Clapinski <mclapinski@google.com> Reviewed-by: Davidlohr Bueso <dbueso@suse.de> Reviewed-by: Manfred Spraul <manfred@colorfullife.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/main.c')
0 files changed, 0 insertions, 0 deletions