-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[zh] Update apparmor.md #30541
[zh] Update apparmor.md #30541
Conversation
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
✔️ Deploy Preview for kubernetes-io-main-staging ready! 🔨 Explore the source changes: 2151d4e 🔍 Inspect the deploy log: https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/6195c60d6958e50007e0b881 😎 Browse the preview: https://deploy-preview-30541--kubernetes-io-main-staging.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see
➜ website git:(main) ./scripts/lsync.sh content/zh/docs/tutorials/clusters/apparmor.md
diff --git a/content/en/docs/tutorials/clusters/apparmor.md b/content/en/docs/tutorials/clusters/apparmor.md
index 890776808..992841e35 100644
--- a/content/en/docs/tutorials/clusters/apparmor.md
+++ b/content/en/docs/tutorials/clusters/apparmor.md
@@ -233,7 +233,7 @@ kubectl get events | grep hello-apparmor
We can verify that the container is actually running with that profile by checking its 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)
@@ -242,7 +242,7 @@ k8s-apparmor-example-deny-write (enforce)
Finally, we can see what happens if we try to violate the profile by writing to a file:
```shell
-kubectl exec hello-apparmor touch /tmp/test
+kubectl exec hello-apparmor -- touch /tmp/test
touch: /tmp/test: Permission denied
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tanjunchen The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
LGTM label has been added. Git tree hash: d7a634bd1aa2ccaaaa179346232b654cdc58c6e8
|
Signed-off-by: Guangwen Feng fenggw-fnst@cn.fujitsu.com
en PR #30439
/assign @tengqm
PTAL, thanks.