-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make SCC with less capabilities more restrictive.
- Loading branch information
Showing
2 changed files
with
109 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The function call like
newSCC([]kapi.Capability{"KILL", "MKNOD"}, []kapi.Capability{}, []kapi.Capability{})
isn't obvious, because it's not clear from the first sight what parameter maps to what caps.I'd suggest to make these caps the members of the struct and create SCC in the loop instead of here: