From: Serge Hallyn Date: Mon, 17 Feb 2014 18:46:30 +0000 (-0600) Subject: support get_config_item(lxc.seccomp) and clear_config_item(lxc.seccomp) X-Git-Tag: lxc-1.0.0.rc3~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58e0f57da4daa5f41a0402916bce139fd49f9b80;p=thirdparty%2Flxc.git support get_config_item(lxc.seccomp) and clear_config_item(lxc.seccomp) Signed-off-by: Serge Hallyn Acked-by: Stéphane Graber --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index fa263ef4a..afc9e32cd 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -44,6 +44,7 @@ #include "log.h" #include "conf.h" #include "network.h" +#include "lxcseccomp.h" #if HAVE_SYS_PERSONALITY_H #include @@ -2124,6 +2125,8 @@ int lxc_get_config_item(struct lxc_conf *c, const char *key, char *retv, return lxc_get_conf_int(c, retv, inlen, c->start_order); else if (strcmp(key, "lxc.group") == 0) return lxc_get_item_groups(c, retv, inlen); + else if (strcmp(key, "lxc.seccomp") == 0) + v = c->seccomp; else return -1; if (!v) @@ -2151,6 +2154,10 @@ int lxc_clear_config_item(struct lxc_conf *c, const char *key) return lxc_clear_hooks(c, key); else if (strncmp(key, "lxc.group", 9) == 0) return lxc_clear_groups(c); + else if (strncmp(key, "lxc.seccomp", 11) == 0) { + lxc_seccomp_free(c); + return 0; + } return -1; }