Unverified Commit 4645c74c by Christian Brauner Committed by Stéphane Graber

caps: return false if caps are not supported

parent 1291d99a
...@@ -56,11 +56,11 @@ static inline int lxc_caps_last_cap(void) { ...@@ -56,11 +56,11 @@ static inline int lxc_caps_last_cap(void) {
typedef int cap_value_t; typedef int cap_value_t;
typedef int cap_flag_t; typedef int cap_flag_t;
static inline bool lxc_proc_cap_is_set(cap_value_t cap, cap_flag_t flag) { 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) { static inline bool lxc_file_cap_is_set(const char *path, cap_value_t cap, cap_flag_t flag) {
return true; return false;
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment