From: Christian Brauner Date: Tue, 18 Apr 2017 22:58:46 +0000 (+0200) Subject: caps: return false if caps are not supported X-Git-Tag: lxc-2.1.0~155^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1514%2Fhead;p=thirdparty%2Flxc.git caps: return false if caps are not supported Signed-off-by: Christian Brauner --- diff --git a/src/lxc/caps.h b/src/lxc/caps.h index 3aa87d162..2a8c282a5 100644 --- a/src/lxc/caps.h +++ b/src/lxc/caps.h @@ -56,11 +56,11 @@ static inline int lxc_caps_last_cap(void) { typedef int cap_value_t; typedef int cap_flag_t; static inline bool lxc_proc_cap_is_set(cap_value_t cap, cap_flag_t flag) { - return true; + return false; } static inline bool lxc_file_cap_is_set(const char *path, cap_value_t cap, cap_flag_t flag) { - return true; + return false; } #endif