}
printf("lxc.proc returned %d %s\n", ret, v3);
+#if HAVE_APPARMOR
if (!c->set_config_item(c, "lxc.apparmor.profile", "unconfined")) {
fprintf(stderr, "%d: failed to set aa_profile\n", __LINE__);
goto out;
goto out;
}
printf("lxc.aa_profile returned %d %s\n", ret, v2);
+#endif
lxc_container_put(c);
goto non_test_error;
}
+#if HAVE_APPARMOR
if (set_get_compare_clear_save_load(c, "lxc.apparmor.profile", "unconfined", tmpf, true) < 0) {
lxc_error("%s\n", "lxc.apparmor.profile");
goto non_test_error;
lxc_error("%s\n", "lxc.apparmor.allow_incomplete");
goto non_test_error;
}
+#endif
+#if HAVE_SELINUX
if (set_get_compare_clear_save_load(c, "lxc.selinux.context", "system_u:system_r:lxc_t:s0:c22", tmpf, true) < 0) {
lxc_error("%s\n", "lxc.selinux.context");
goto non_test_error;
}
+#endif
if (set_get_compare_clear_save_load(c, "lxc.cgroup.cpuset.cpus",
"1-100", tmpf, false) < 0) {