Commit 5163b583 authored by Eric Paris's avatar Eric Paris Committed by James Morris

capabilities: delete unused cap_set_full

unused code.  Clean it up.
Signed-off-by: default avatarEric Paris <eparis@redhat.com>
Acked-by: default avatarDavid Howells <dhowells@redhat.com>
Acked-by: default avatarAndrew G. Morgan <morgan@kernel.org>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent ffa8e59d
...@@ -425,7 +425,6 @@ extern const kernel_cap_t __cap_init_eff_set; ...@@ -425,7 +425,6 @@ extern const kernel_cap_t __cap_init_eff_set;
#define CAP_INIT_EFF_SET CAP_FULL_SET #define CAP_INIT_EFF_SET CAP_FULL_SET
# define cap_clear(c) do { (c) = __cap_empty_set; } while (0) # define cap_clear(c) do { (c) = __cap_empty_set; } while (0)
# define cap_set_full(c) do { (c) = __cap_full_set; } while (0)
#define cap_raise(c, flag) ((c).cap[CAP_TO_INDEX(flag)] |= CAP_TO_MASK(flag)) #define cap_raise(c, flag) ((c).cap[CAP_TO_INDEX(flag)] |= CAP_TO_MASK(flag))
#define cap_lower(c, flag) ((c).cap[CAP_TO_INDEX(flag)] &= ~CAP_TO_MASK(flag)) #define cap_lower(c, flag) ((c).cap[CAP_TO_INDEX(flag)] &= ~CAP_TO_MASK(flag))
...@@ -547,7 +546,6 @@ extern bool ns_capable(struct user_namespace *ns, int cap); ...@@ -547,7 +546,6 @@ extern bool ns_capable(struct user_namespace *ns, int cap);
extern bool task_ns_capable(struct task_struct *t, int cap); extern bool task_ns_capable(struct task_struct *t, int cap);
extern const kernel_cap_t __cap_empty_set; extern const kernel_cap_t __cap_empty_set;
extern const kernel_cap_t __cap_full_set;
/** /**
* nsown_capable - Check superior capability to one's own user_ns * nsown_capable - Check superior capability to one's own user_ns
......
...@@ -22,10 +22,8 @@ ...@@ -22,10 +22,8 @@
*/ */
const kernel_cap_t __cap_empty_set = CAP_EMPTY_SET; const kernel_cap_t __cap_empty_set = CAP_EMPTY_SET;
const kernel_cap_t __cap_full_set = CAP_FULL_SET;
EXPORT_SYMBOL(__cap_empty_set); EXPORT_SYMBOL(__cap_empty_set);
EXPORT_SYMBOL(__cap_full_set);
int file_caps_enabled = 1; int file_caps_enabled = 1;
......
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