forked from External/ergo
correctly support disabling caps with CAP REQ, fixes #337
This commit is contained in:
parent
6667585605
commit
f48af3ee44
5 changed files with 55 additions and 9 deletions
|
|
@ -59,6 +59,11 @@ func (s *Set) Union(other *Set) {
|
|||
utils.BitsetUnion(s[:], other[:])
|
||||
}
|
||||
|
||||
// Subtract removes all the capabilities of another set from this set.
|
||||
func (s *Set) Subtract(other *Set) {
|
||||
utils.BitsetSubtract(s[:], other[:])
|
||||
}
|
||||
|
||||
// Empty returns whether the set is empty.
|
||||
func (s *Set) Empty() bool {
|
||||
return utils.BitsetEmpty(s[:])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue