commit | 0889f44e281034e180daa6daf3e2d57c012452d4 | [log] [tgz] |
---|---|---|
author | Alexey Gladkov <legion@kernel.org> | Tue May 03 15:39:56 2022 +0200 |
committer | Eric W. Biederman <ebiederm@xmission.com> | Tue May 03 17:25:58 2022 -0500 |
tree | b5a178a44464035f58e926b1d9ebed9a8880d4ad | |
parent | dd141a4955d5ebbb3f4c7996796e86a3ac9ed57f [diff] |
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: 1f5c135ee509 ("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>