]> git.baikalelectronics.ru Git - kernel.git/commit
seccomp: Separate read and write code for actions_logged sysctl
authorTyler Hicks <tyhicks@canonical.com>
Fri, 4 May 2018 01:08:12 +0000 (01:08 +0000)
committerPaul Moore <paul@paul-moore.com>
Tue, 8 May 2018 06:01:09 +0000 (02:01 -0400)
commit3f7b7930109cdb970880d78e8d03d7a91b98cef2
tree2e7c741a7545476c4040d88bf37e5545d7f2f465
parent07266544604a2a1aa1ba2203da6d8eccbc8e0a52
seccomp: Separate read and write code for actions_logged sysctl

Break the read and write paths of the kernel.seccomp.actions_logged
sysctl into separate functions to maintain readability. An upcoming
change will need to audit writes, but not reads, of this sysctl which
would introduce too many conditional code paths on whether or not the
'write' parameter evaluates to true.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/seccomp.c