mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-07 17:36:22 +00:00
Merge pull request #3164 from rhatdan/apparmor
Don't set apparmor if --priviliged
This commit is contained in:
commit
27f9e23a0b
1 changed files with 3 additions and 1 deletions
|
|
@ -268,7 +268,9 @@ func (config *CreateConfig) createConfigToOCISpec(runtime *libpod.Runtime, userM
|
|||
// SECURITY OPTS
|
||||
g.SetProcessNoNewPrivileges(config.NoNewPrivs)
|
||||
|
||||
g.SetProcessApparmorProfile(config.ApparmorProfile)
|
||||
if !config.Privileged {
|
||||
g.SetProcessApparmorProfile(config.ApparmorProfile)
|
||||
}
|
||||
|
||||
blockAccessToKernelFilesystems(config, &g)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue