]> asedeno.scripts.mit.edu Git - linux.git/commit
seccomp: Configurable separator for the actions_logged string
authorTyler Hicks <tyhicks@canonical.com>
Fri, 4 May 2018 01:08:13 +0000 (01:08 +0000)
committerPaul Moore <paul@paul-moore.com>
Tue, 8 May 2018 06:02:25 +0000 (02:02 -0400)
commitbeb44acaf000c97d6c89de581f377df5757857f3
tree05a59c7f4291d3d71762628564b7aac13f099d3e
parentd013db029491b49e1459d5a55ecd9ec1be1447ca
seccomp: Configurable separator for the actions_logged string

The function that converts a bitmask of seccomp actions that are
allowed to be logged is currently only used for constructing the display
string for the kernel.seccomp.actions_logged sysctl. That string wants a
space character to be used for the separator between actions.

A future patch will make use of the same function for building a string
that will be sent to the audit subsystem for tracking modifications to
the kernel.seccomp.actions_logged sysctl. That string will need to use a
comma as a separator. This patch allows the separator character to be
configurable to meet both needs.

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