From 86d435f32fc4230481d789499973c07a5b5ae78d Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 1 Oct 2018 18:31:40 -0400 Subject: Disable SELinux labeling if --privileged Signed-off-by: Daniel J Walsh --- cmd/podman/create.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmd/podman') diff --git a/cmd/podman/create.go b/cmd/podman/create.go index fc0c71536..574137271 100644 --- a/cmd/podman/create.go +++ b/cmd/podman/create.go @@ -784,7 +784,9 @@ func parseCreateOpts(ctx context.Context, c *cli.Context, runtime *libpod.Runtim VolumesFrom: c.StringSlice("volumes-from"), } - if !config.Privileged { + if config.Privileged { + config.LabelOpts = label.DisableSecOpt() + } else { if err := parseSecurityOpt(config, c.StringSlice("security-opt")); err != nil { return nil, err } -- cgit v1.2.3-54-g00ecf