Skip to content

Commit

Permalink
Merge pull request #8687 from sharifelgamal/apparmor
Browse files Browse the repository at this point in the history
restrict apparmor security opt to docker
  • Loading branch information
medyagh authored Jul 9, 2020
2 parents b12dbeb + d0d3973 commit 4d756f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/drivers/kic/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ func CreateContainerNode(p CreateParams) error {
// for now this is what we want. in the future we may revisit this.
"--privileged",
"--security-opt", "seccomp=unconfined", // ignore seccomp
// ignore apparmore github actions docker: https://github.com/kubernetes/minikube/issues/7624
"--security-opt", "apparmor=unconfined",
"--tmpfs", "/tmp", // various things depend on working /tmp
"--tmpfs", "/run", // systemd wants a writable /run
// logs,pods be stroed on filesystem vs inside container,
Expand All @@ -150,6 +148,8 @@ func CreateContainerNode(p CreateParams) error {
}
if p.OCIBinary == Docker {
runArgs = append(runArgs, "--volume", fmt.Sprintf("%s:/var", p.Name))
// ignore apparmore github actions docker: https://github.com/kubernetes/minikube/issues/7624
runArgs = append(runArgs, "--security-opt", "apparmor=unconfined")
}

runArgs = append(runArgs, fmt.Sprintf("--cpus=%s", p.CPUs))
Expand Down

0 comments on commit 4d756f2

Please sign in to comment.