Fixes: #3777
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
lxc_file_cap_is_set(path, CAP_SETGID, CAP_EFFECTIVE) &&
lxc_file_cap_is_set(path, CAP_SETGID, CAP_PERMITTED))
return log_debug(1, "The binary \"%s\" has CAP_SETGID in its CAP_EFFECTIVE and CAP_PERMITTED sets", path);
+
+ return 0;
#else
/*
* If we cannot check for file capabilities we need to give the benefit
* file capabilities are set.
*/
DEBUG("Cannot check for file capabilities as full capability support is missing. Manual intervention needed");
-#endif
-
return 1;
+#endif
}
static int lxc_map_ids_exec_wrapper(void *args)