mirror of
https://github.com/containers/podman.git
synced 2025-06-06 15:00:40 +08:00
Don't set apparmor if --priviliged
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -268,7 +268,9 @@ func (config *CreateConfig) createConfigToOCISpec(runtime *libpod.Runtime, userM
|
|||||||
// SECURITY OPTS
|
// SECURITY OPTS
|
||||||
g.SetProcessNoNewPrivileges(config.NoNewPrivs)
|
g.SetProcessNoNewPrivileges(config.NoNewPrivs)
|
||||||
|
|
||||||
|
if !config.Privileged {
|
||||||
g.SetProcessApparmorProfile(config.ApparmorProfile)
|
g.SetProcessApparmorProfile(config.ApparmorProfile)
|
||||||
|
}
|
||||||
|
|
||||||
blockAccessToKernelFilesystems(config, &g)
|
blockAccessToKernelFilesystems(config, &g)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user