pipeline: drop CAP_{NET_ADMIN,SYS_PTRACE} caps

Drop CAP_{NET_ADMIN,SYS_PTRACE} from the default capabilities which
are only needed to run bwrap from inside a stage which is done by
the `ostree.commit` and `ostree.preptree` stages, so retain them
directly there.
This commit is contained in:
Christian Kellner 2022-04-26 18:59:18 +02:00 committed by Tom Gundersen
parent d14e5f3ee8
commit 0c8f5c7ef0
5 changed files with 12 additions and 2 deletions

View file

@ -24,6 +24,9 @@ from osbuild import api
from osbuild.util import ostree
CAPABILITIES = ["CAP_NET_ADMIN", "CAP_SYS_PTRACE"]
SCHEMA_2 = """
"options": {
"additionalProperties": false,

View file

@ -43,6 +43,9 @@ from osbuild import api
from osbuild.util import ostree
CAPABILITIES = ["CAP_NET_ADMIN", "CAP_SYS_PTRACE"]
SCHEMA = """
"additionalProperties": false,
"properties": {

View file

@ -39,6 +39,9 @@ import osbuild.api
from osbuild.util import ostree
CAPABILITIES = ["CAP_NET_ADMIN", "CAP_SYS_PTRACE"]
SCHEMA = """
"additionalProperties": false,
"properties": {