Skip to content

Commit b85583b

Browse files
committed
Add extra
1 parent b39492b commit b85583b

File tree

9 files changed

+17
-0
lines changed

9 files changed

+17
-0
lines changed

api/apparmorprofile/v1alpha1/apparmorprofile_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ type AppArmorAbstract struct {
8282
Network *AppArmorNetworkRules `json:"network,omitempty"`
8383
// Capability rules for Linux capabilities.
8484
Capability *AppArmorCapabilityRules `json:"capability,omitempty"`
85+
// Extra rules for other config.
86+
Extra string `json:"extra,omitempty"`
8587
}
8688

8789
// AppArmorProfileSpec defines the desired state of AppArmorProfile.

deploy/base-crds/crds/apparmorprofile.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ spec:
7272
type: string
7373
type: array
7474
type: object
75+
extra:
76+
type: string
7577
filesystem:
7678
description: Filesystem rules for filesystem access.
7779
properties:

deploy/helm/crds/crds.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,6 +2262,8 @@ spec:
22622262
type: string
22632263
type: array
22642264
type: object
2265+
extra:
2266+
type: string
22652267
filesystem:
22662268
description: Filesystem rules for filesystem access.
22672269
properties:

deploy/namespace-operator.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,6 +2262,8 @@ spec:
22622262
type: string
22632263
type: array
22642264
type: object
2265+
extra:
2266+
type: string
22652267
filesystem:
22662268
description: Filesystem rules for filesystem access.
22672269
properties:

deploy/openshift-dev.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ spec:
8585
type: string
8686
type: array
8787
type: object
88+
extra:
89+
type: string
8890
filesystem:
8991
description: Filesystem rules for filesystem access.
9092
properties:

deploy/openshift-downstream.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,6 +2262,8 @@ spec:
22622262
type: string
22632263
type: array
22642264
type: object
2265+
extra:
2266+
type: string
22652267
filesystem:
22662268
description: Filesystem rules for filesystem access.
22672269
properties:

deploy/operator.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,6 +2262,8 @@ spec:
22622262
type: string
22632263
type: array
22642264
type: object
2265+
extra:
2266+
type: string
22652267
filesystem:
22662268
description: Filesystem rules for filesystem access.
22672269
properties:

deploy/webhook-operator.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ spec:
8585
type: string
8686
type: array
8787
type: object
88+
extra:
89+
type: string
8890
filesystem:
8991
description: Filesystem rules for filesystem access.
9092
properties:

internal/pkg/daemon/apparmorprofile/crd2armor/crd2armor.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ profile {{.Name}} flags=({{.ProfileMode}},attach_disconnected,mediate_deleted) {
8080
{{end}}
8181
8282
# Raw rules placeholder
83+
{{.Abstract.Extra}}
8384
8485
# Add default deny for known information leak/priv esc paths
8586
deny @{PROC}/* w, # deny write for all files directly in /proc (not in a subdir)

0 commit comments

Comments
 (0)