static int set_config_seccomp_profile(const char *key, const char *value,
struct lxc_conf *lxc_conf, void *data)
{
+#ifdef HAVE_SECCOMP
return set_config_path_item(&lxc_conf->seccomp.seccomp, value);
+#else
+ return ret_set_errno(-1, ENOSYS);
+#endif
}
static int set_config_execute_cmd(const char *key, const char *value,
static int get_config_seccomp_profile(const char *key, char *retv, int inlen,
struct lxc_conf *c, void *data)
{
+#ifdef HAVE_SECCOMP
return lxc_get_conf_str(retv, inlen, c->seccomp.seccomp);
+#else
+ return ret_errno(ENOSYS);
+#endif
}
static int get_config_autodev(const char *key, char *retv, int inlen,