Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120648
b: refs/heads/master
c: 9d36be7
h: refs/heads/master
v: v3
  • Loading branch information
Eric Paris authored and James Morris committed Nov 11, 2008
1 parent 058f5ee commit 2872717
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39c9aede2b4a252bd296c0a86be832c3d3d0a273
refs/heads/master: 9d36be76c55ad2c2bb29683b752b0d9ad2e4eeef
7 changes: 7 additions & 0 deletions trunk/include/linux/capability.h
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,13 @@ static inline int cap_isclear(const kernel_cap_t a)
return 1;
}

/*
* Check if "a" is a subset of "set".
* return 1 if ALL of the capabilities in "a" are also in "set"
* cap_issubset(0101, 1111) will return 1
* return 0 if ANY of the capabilities in "a" are not in "set"
* cap_issubset(1111, 0101) will return 0
*/
static inline int cap_issubset(const kernel_cap_t a, const kernel_cap_t set)
{
kernel_cap_t dest;
Expand Down

0 comments on commit 2872717

Please sign in to comment.