diff options
Diffstat (limited to 'include/linux/capability.h')
-rw-r--r-- | include/linux/capability.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/capability.h b/include/linux/capability.h index af9f0b9e80e6..b03200374608 100644 --- a/include/linux/capability.h +++ b/include/linux/capability.h | |||
@@ -171,12 +171,6 @@ static inline int cap_issubset(const kernel_cap_t a, const kernel_cap_t set) | |||
171 | 171 | ||
172 | /* Used to decide between falling back on the old suser() or fsuser(). */ | 172 | /* Used to decide between falling back on the old suser() or fsuser(). */ |
173 | 173 | ||
174 | static inline int cap_is_fs_cap(int cap) | ||
175 | { | ||
176 | const kernel_cap_t __cap_fs_set = CAP_FS_SET; | ||
177 | return !!(CAP_TO_MASK(cap) & __cap_fs_set.cap[CAP_TO_INDEX(cap)]); | ||
178 | } | ||
179 | |||
180 | static inline kernel_cap_t cap_drop_fs_set(const kernel_cap_t a) | 174 | static inline kernel_cap_t cap_drop_fs_set(const kernel_cap_t a) |
181 | { | 175 | { |
182 | const kernel_cap_t __cap_fs_set = CAP_FS_SET; | 176 | const kernel_cap_t __cap_fs_set = CAP_FS_SET; |