@@ -7,13 +7,16 @@ ifeval::["{context}" == "spo-seccomp"]
7
7
:seccomp:
8
8
:type: seccomp
9
9
:kind: SeccompProfile
10
+ :object: seccompprofiles
10
11
endif::[]
11
12
ifeval::["{context} " == "spo-selinux"]
12
13
:selinux:
13
14
:type: SELinux
14
15
:kind: SelinuxProfile
16
+ :object: selinuxprofiles
15
17
endif::[]
16
18
19
+
17
20
:_content-type: PROCEDURE
18
21
[id="spo-recording-profiles_{context} "]
19
22
= Recording profiles from workloads
@@ -94,10 +97,9 @@ $ oc -n openshift-security-profiles logs --since=1m --selector name=spod -c log-
94
97
----
95
98
+
96
99
.Example output
97
- [source,terminal]
100
+ [source,terminal,subs="attributes+" ]
98
101
----
99
- …
100
- I0705 12:08:18.729660 1843190 enricher.go:136] log-enricher "msg"="audit" "container"="redis" "executable"="/usr/local/bin/redis-server" "namespace"="default" "node"="127.0.0.1" "pid"=1847839 "pod"="my-pod" "syscallID"=232 "syscallName"="epoll_wait" "timestamp"="1625486870.273:187492" "type"="{type}"
102
+ I0517 13:55:36.383187 348295 enricher.go:376] log-enricher "msg"="audit" "container"="redis" "namespace"="my-namespace" "node"="ip-10-0-189-53.us-east-2.compute.internal" "perm"="name_bind" "pod"="my-pod" "profile"="test-recording_redis_6kmrb_1684331729" "scontext"="system_u:system_r:selinuxrecording.process:s0:c4,c27" "tclass"="tcp_socket" "tcontext"="system_u:object_r:redis_port_t:s0" "timestamp"="1684331735.105:273965" "type"="{type}"
101
103
----
102
104
103
105
.Verification
@@ -111,26 +113,28 @@ $ oc -n openshift-security-profiles delete pod my-pod
111
113
112
114
. Confirm the Security Profiles Operator reconciles the two {type} profiles:
113
115
+
114
- [source,terminal]
116
+ [source,terminal,subs="attributes+" ]
115
117
----
116
- $ oc -n openshift-security-profiles get sp
118
+ $ oc get {object} -n my-namespace
117
119
----
118
120
+
119
121
.Example output
120
122
[source,terminal]
121
123
----
122
- NAME STATUS AGE
123
- test-recording-nginx Installed 15s
124
- test-recording-redis Installed 15s
124
+ NAME USAGE STATE
125
+ test-recording-nginx test-recording-nginx_my-namespace.process Installed
126
+ test-recording-redis test-recording-redis_my-namespace.process Installed
125
127
----
126
128
127
129
ifeval::["{context} " == "spo-seccomp"]
128
130
:!seccomp:
129
131
:!type:
130
132
:!kind:
133
+ :!object:
131
134
endif::[]
132
135
ifeval::["{context} " == "spo-selinux"]
133
136
:!selinux:
134
137
:!type:
135
138
:!kind:
139
+ :!object:
136
140
endif::[]
0 commit comments