Skip to content

Commit

Permalink
capabilities: delete unused cap_set_full
Browse files Browse the repository at this point in the history
unused code.  Clean it up.

Signed-off-by: Eric Paris <[email protected]>
Acked-by: David Howells <[email protected]>
Acked-by: Andrew G. Morgan <[email protected]>
Signed-off-by: James Morris <[email protected]>
  • Loading branch information
eparis authored and James Morris committed Apr 4, 2011
1 parent ffa8e59 commit 5163b58
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions include/linux/capability.h
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ extern const kernel_cap_t __cap_init_eff_set;
#define CAP_INIT_EFF_SET CAP_FULL_SET

# 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_lower(c, flag) ((c).cap[CAP_TO_INDEX(flag)] &= ~CAP_TO_MASK(flag))
Expand Down Expand Up @@ -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 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
Expand Down
2 changes: 0 additions & 2 deletions kernel/capability.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@
*/

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_full_set);

int file_caps_enabled = 1;

Expand Down

0 comments on commit 5163b58

Please sign in to comment.