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:
Christian Kellner 2022-04-22 20:25:33 +02:00 committed by Tom Gundersen
parent 0c8f5c7ef0
commit b57376d160
13 changed files with 26 additions and 5 deletions

View file

@ -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 = """

View file

@ -27,6 +27,9 @@ import sys
import osbuild.api
CAPABILITIES = ["CAP_MAC_ADMIN"]
SCHEMA = """
"additionalProperties": false,
"required": ["filename"],