Skip to content
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

Modify apparmor.md based on PR - Fix site build (#16531) #16650

Merged
merged 1 commit into from
Oct 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion content/en/docs/tutorials/clusters/apparmor.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,18 @@ k8s-apparmor-example-deny-write (enforce)
First, we need to load the profile we want to use onto our nodes. The profile we'll use simply
denies all file writes:

{{< code language="text" file="deny-write.profile" >}}
```shell
#include <tunables/global>

profile k8s-apparmor-example-deny-write flags=(attach_disconnected) {
#include <abstractions/base>

file,

# Deny all file writes.
deny /** w,
}
```

Since we don't know where the Pod will be scheduled, we'll need to load the profile on all our
nodes. For this example we'll just use SSH to install the profiles, but other approaches are
Expand Down
10 changes: 0 additions & 10 deletions content/en/docs/tutorials/clusters/deny-write.profile

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
<!-- All files in this directory are auto-generated from other repos. **Do not edit them manually. You must edit them in their upstream repo.**
-->
此目录下的所有文件都是从其他仓库自动生成的。 **不要人工编辑它们。 您必须在上游仓库中编辑它们**