Merge pull request #30539 from Arhell/upd-app

[ja] update apparmor.md
This commit is contained in:
Kubernetes Prow Robot
2021-11-18 19:34:51 -08:00
committed by GitHub
@@ -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