[ja] update apparmor.md

This commit is contained in:
Arhell
2021-11-18 02:39:08 +02:00
parent 0aa00b6902
commit 2a1ba00aa7
@@ -183,7 +183,7 @@ kubectl get events | grep hello-apparmor
コンテナがこのプロファイルで実際に実行されていることを確認するために、コンテナのproc attrをチェックします。
```shell
kubectl exec hello-apparmor cat /proc/1/attr/current
kubectl exec hello-apparmor -- cat /proc/1/attr/current
```
```
k8s-apparmor-example-deny-write (enforce)
@@ -192,7 +192,7 @@ k8s-apparmor-example-deny-write (enforce)
最後に、ファイルへの書き込みを行おうとすることで、プロファイルに違反すると何が起こるか見てみましょう。
```shell
kubectl exec hello-apparmor touch /tmp/test
kubectl exec hello-apparmor touch -- /tmp/test
```
```
touch: /tmp/test: Permission denied