mirror of
https://github.com/containers/podman.git
synced 2025-12-02 02:58:03 +08:00
Clarify the docs on DropCapability
It was a bit unclear what setting it to empty means. Also, add to the tests verification that this works. Signed-off-by: Alexander Larsson <alexl@redhat.com>
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
## assert-podman-args "--cap-drop=all"
|
||||
## !assert-podman-args "--cap-drop=all"
|
||||
## assert-podman-args "--cap-add=cap_dac_override"
|
||||
## assert-podman-args "--cap-add=cap_audit_write"
|
||||
## assert-podman-args "--cap-add=cap_ipc_owner"
|
||||
|
||||
[Container]
|
||||
Image=imagename
|
||||
# Verify that we can reset to the default cap set
|
||||
DropCapability=
|
||||
AddCapability=CAP_DAC_OVERRIDE CAP_AUDIT_WRITE
|
||||
AddCapability=CAP_IPC_OWNER
|
||||
|
||||
Reference in New Issue
Block a user