pipeline: drop CAP_MAC_ADMIN by default
Drop `CAP_MAC_ADMIN` from the default capabilities which is needed to write and read(!) unknown SELinux labels. Adjust the stages that need to read or write SELinux labels accordingly.
This commit is contained in:
parent
0c8f5c7ef0
commit
b57376d160
13 changed files with 26 additions and 5 deletions
|
|
@ -29,7 +29,7 @@ from osbuild import api
|
|||
from osbuild.util import ostree
|
||||
|
||||
|
||||
CAPABILITIES = ["CAP_NET_ADMIN", "CAP_SYS_PTRACE"]
|
||||
CAPABILITIES = ["CAP_MAC_ADMIN", "CAP_NET_ADMIN", "CAP_SYS_PTRACE"]
|
||||
|
||||
|
||||
SCHEMA = """
|
||||
|
|
|
|||
|
|
@ -27,6 +27,9 @@ import sys
|
|||
import osbuild.api
|
||||
|
||||
|
||||
CAPABILITIES = ["CAP_MAC_ADMIN"]
|
||||
|
||||
|
||||
SCHEMA = """
|
||||
"additionalProperties": false,
|
||||
"required": ["filename"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue