bianbu-linux-6.6-fh/ipc
Alexey Gladkov 0889f44e28 ipc: Check permissions for checkpoint_restart sysctls at open time
As Eric Biederman pointed out, it is possible not to use a custom
proc_handler and check permissions for every write, but to use a
.permission handler. That will allow the checkpoint_restart sysctls to
perform all of their permission checks at open time, and not need any
other special code.

Link: https://lore.kernel.org/lkml/87czib9g38.fsf@email.froward.int.ebiederm.org/
Fixes: 1f5c135ee5 ("ipc: Store ipc sysctls in the ipc namespace")
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Alexey Gladkov <legion@kernel.org>
Link: https://lkml.kernel.org/r/65fa8459803830608da4610a39f33c76aa933eb9.1651584847.git.legion@kernel.org
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
2022-05-03 17:25:58 -05:00
..
compat.c
ipc_sysctl.c ipc: Check permissions for checkpoint_restart sysctls at open time 2022-05-03 17:25:58 -05:00
Makefile
mq_sysctl.c ipc: Store mqueue sysctls in the ipc namespace 2022-03-08 13:39:40 -06:00
mqueue.c ipc: Store mqueue sysctls in the ipc namespace 2022-03-08 13:39:40 -06:00
msg.c
msgutil.c
namespace.c ipc: Store ipc sysctls in the ipc namespace 2022-03-08 13:39:40 -06:00
sem.c
shm.c
syscall.c
util.c
util.h