]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Add CAP_AUDIT_READ
authorChristian Brauner <christianvanbrauner@gmail.com>
Sun, 27 Sep 2015 10:16:54 +0000 (12:16 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 29 Sep 2015 16:40:46 +0000 (12:40 -0400)
CAP_AUDIT_READ (since Linux 3.16)
    Allow reading the audit log via a multicast netlink socket.

Signed-off-by: Christian Brauner <christianvanbrauner@gmail.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c

index bbc8f6ff967eb755420a0038eed5ab1784a60b7f..4f8d7b3b612a432ba8ce42cd32229b608cbcab68 100644 (file)
@@ -275,6 +275,9 @@ static struct caps_opt caps_opt[] = {
        { "sys_tty_config",    CAP_SYS_TTY_CONFIG    },
        { "mknod",             CAP_MKNOD             },
        { "lease",             CAP_LEASE             },
+#ifdef CAP_AUDIT_READ
+       { "audit_read",        CAP_AUDIT_READ        },
+#endif
 #ifdef CAP_AUDIT_WRITE
        { "audit_write",       CAP_AUDIT_WRITE       },
 #endif