File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
content/en/docs/tutorials/clusters Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ kubectl get events | grep hello-apparmor
233
233
We can verify that the container is actually running with that profile by checking its proc attr:
234
234
235
235
``` shell
236
- kubectl exec hello-apparmor cat /proc/1/attr/current
236
+ kubectl exec hello-apparmor -- cat /proc/1/attr/current
237
237
```
238
238
```
239
239
k8s-apparmor-example-deny-write (enforce)
@@ -242,7 +242,7 @@ k8s-apparmor-example-deny-write (enforce)
242
242
Finally, we can see what happens if we try to violate the profile by writing to a file:
243
243
244
244
``` shell
245
- kubectl exec hello-apparmor touch /tmp/test
245
+ kubectl exec hello-apparmor -- touch /tmp/test
246
246
```
247
247
```
248
248
touch: /tmp/test: Permission denied
You can’t perform that action at this time.
0 commit comments