diff options
| author | Michal Clapinski <[email protected]> | 2021-11-09 02:35:59 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-11-09 18:02:53 +0000 |
| commit | 5563cabdde7ee53c34ec7e5e0283bfcc9a1bc893 (patch) | |
| tree | 7aa5212a7c84ab3df319c71b15b511204e6a3b4d /drivers/fpga/fpga-bridge.c | |
| parent | selftests/kselftest/runner/run_one(): allow running non-executable files (diff) | |
| download | kernel-5563cabdde7ee53c34ec7e5e0283bfcc9a1bc893.tar.gz kernel-5563cabdde7ee53c34ec7e5e0283bfcc9a1bc893.zip | |
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.
[[email protected]: ipc/ipc_sysctl.c needs capability.h for checkpoint_restore_ns_capable()]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Michal Clapinski <[email protected]>
Reviewed-by: Davidlohr Bueso <[email protected]>
Reviewed-by: Manfred Spraul <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
