]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conditional use of new capabilities
authorFerenc Wagner <wferi@niif.hu>
Mon, 7 Jun 2010 09:33:56 +0000 (11:33 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Mon, 7 Jun 2010 09:33:56 +0000 (11:33 +0200)
Signed-off-by: Ferenc Wagner <wferi@niif.hu>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/conf.c

index 3d550a71ddd3cf58a06a68ca7498a8b40791011c..9565d914d876bf06e86b867cdf5400bd6cae5524 100644 (file)
@@ -170,8 +170,12 @@ static struct caps_opt caps_opt[] = {
        { "sys_tty_config",    CAP_SYS_TTY_CONFIG    },
        { "mknod",             CAP_MKNOD             },
        { "lease",             CAP_LEASE             },
+#ifdef CAP_AUDIT_WRITE
        { "audit_write",       CAP_AUDIT_WRITE       },
+#endif
+#ifdef CAP_AUDIT_CONTROL
        { "audit_control",     CAP_AUDIT_CONTROL     },
+#endif
        { "setfcap",           CAP_SETFCAP           },
        { "mac_override",      CAP_MAC_OVERRIDE      },
        { "mac_admin",         CAP_MAC_ADMIN         },