summaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-10-18 15:50:11 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2018-10-23 10:57:23 -0400
commita95d71f1135165ae51c28b49275e5a3948fbbd2b (patch)
tree09a1a17d28799e0ebf409c45f80d1b01985717ac /libpod/options.go
parent57b0b89d0ceb77bfd51a4d957f51fcea3d1580f6 (diff)
downloadpodman-a95d71f1135165ae51c28b49275e5a3948fbbd2b.tar.gz
podman-a95d71f1135165ae51c28b49275e5a3948fbbd2b.tar.bz2
podman-a95d71f1135165ae51c28b49275e5a3948fbbd2b.zip
Allow containers/storage to handle on SELinux labeling
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/options.go')
-rw-r--r--libpod/options.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 228b38ba5..8d044313b 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -391,11 +391,7 @@ func WithSecLabels(labelOpts []string) CtrCreateOption {
if ctr.valid {
return ErrCtrFinalized
}
- var err error
- ctr.config.ProcessLabel, ctr.config.MountLabel, err = ctr.runtime.initLabels(labelOpts)
- if err != nil {
- return errors.Wrapf(err, "failed to init labels")
- }
+ ctr.config.LabelOpts = labelOpts
return nil
}
}