summaryrefslogtreecommitdiff
path: root/cmd/podman/common/specgen.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-07-22 15:38:42 +0200
committerGitHub <noreply@github.com>2020-07-22 15:38:42 +0200
commit80add2902cf3561d2c9f91dc045076519cd297d5 (patch)
tree2c9b51e5b32158c96142bef6168114380bf4260a /cmd/podman/common/specgen.go
parent9f5d1462be20c86afe363750ecc20ee89e0b3978 (diff)
parent4c4a00f63ea5bc7956bf40be457bf86643575dce (diff)
downloadpodman-80add2902cf3561d2c9f91dc045076519cd297d5.tar.gz
podman-80add2902cf3561d2c9f91dc045076519cd297d5.tar.bz2
podman-80add2902cf3561d2c9f91dc045076519cd297d5.zip
Merge pull request #6992 from rhatdan/apparmor
Support default profile for apparmor
Diffstat (limited to 'cmd/podman/common/specgen.go')
-rw-r--r--cmd/podman/common/specgen.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/podman/common/specgen.go b/cmd/podman/common/specgen.go
index 731085731..e694317cc 100644
--- a/cmd/podman/common/specgen.go
+++ b/cmd/podman/common/specgen.go
@@ -512,10 +512,8 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string
s.ContainerSecurityConfig.SelinuxOpts = append(s.ContainerSecurityConfig.SelinuxOpts, con[1])
s.Annotations[define.InspectAnnotationLabel] = strings.Join(s.ContainerSecurityConfig.SelinuxOpts, ",label=")
case "apparmor":
- if !c.Privileged {
- s.ContainerSecurityConfig.ApparmorProfile = con[1]
- s.Annotations[define.InspectAnnotationApparmor] = con[1]
- }
+ s.ContainerSecurityConfig.ApparmorProfile = con[1]
+ s.Annotations[define.InspectAnnotationApparmor] = con[1]
case "seccomp":
s.SeccompProfilePath = con[1]
s.Annotations[define.InspectAnnotationSeccomp] = con[1]