Skip to content

Commit 2183dda

Browse files
authored
Merge pull request #30541 from fenggw-fnst/update-apparmor
[zh] Update apparmor.md
2 parents b96fc31 + 2151d4e commit 2183dda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/zh/docs/tutorials/clusters/apparmor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ kubectl get events | grep hello-apparmor
320320
我们可以通过检查该配置文件的 proc attr 来验证容器是否实际使用该配置文件运行:
321321

322322
```shell
323-
kubectl exec hello-apparmor cat /proc/1/attr/current
323+
kubectl exec hello-apparmor -- cat /proc/1/attr/current
324324
```
325325
```
326326
k8s-apparmor-example-deny-write (enforce)
@@ -330,7 +330,7 @@ k8s-apparmor-example-deny-write (enforce)
330330
最后,我们可以看到如果试图通过写入文件来违反配置文件,会发生什么情况:
331331

332332
```shell
333-
kubectl exec hello-apparmor touch /tmp/test
333+
kubectl exec hello-apparmor -- touch /tmp/test
334334
```
335335
```
336336
touch: /tmp/test: Permission denied

0 commit comments

Comments
 (0)