This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New feature: check which capabilities need to be dropped
- Loading branch information
Felix Glaser
committed
Oct 30, 2017
1 parent
d5b769b
commit 4701ea8
Showing
7 changed files
with
107 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../config |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# SANE DEFAULTS: | ||
capabilitiesToBeDropped: | ||
# https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities | ||
- AUDIT_WRITE # Write records to kernel auditing log. | ||
- CHOWN # Make arbitrary changes to file UIDs and GIDs (see chown(2)). | ||
- DAC_OVERRIDE # Bypass file read, write, and execute permission checks. | ||
- FOWNER # Bypass permission checks on operations that normally require the file system UID of the process to match the UID of the file. | ||
- FSETID # Don’t clear set-user-ID and set-group-ID permission bits when a file is modified. | ||
- KILL # Bypass permission checks for sending signals. | ||
- MKNOD # Create special files using mknod(2). | ||
- NET_BIND_SERVICE # Bind a socket to internet domain privileged ports (port numbers less than 1024). | ||
- NET_RAW # Use RAW and PACKET sockets. | ||
- SETFCAP # Set file capabilities. | ||
- SETGID # Make arbitrary manipulations of process GIDs and supplementary GID list. | ||
- SETUID # Make arbitrary manipulations of process UIDs. | ||
- SETPCAP # Modify process capabilities. | ||
- SYS_CHROOT # Use chroot(2), change root directory. |