aboutsummaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-02-20 12:09:28 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-24 09:15:47 +0000
commit5e7979f016d6cf1a6a050810af47c75ea16a2c9e (patch)
tree72b0cf958531ea26cf493954be9bc9213a5e5b2d /libpod/options.go
parent831dc488833e055dce1f1ba4c09f09346c85b67d (diff)
downloadpodman-5e7979f016d6cf1a6a050810af47c75ea16a2c9e.tar.gz
podman-5e7979f016d6cf1a6a050810af47c75ea16a2c9e.tar.bz2
podman-5e7979f016d6cf1a6a050810af47c75ea16a2c9e.zip
Address review comments
Review comments to delete WithNoNew function and its append. Signed-off-by: baude <bbaude@redhat.com> Closes: #369 Approved by: rhatdan
Diffstat (limited to 'libpod/options.go')
-rw-r--r--libpod/options.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 6982a26c2..56e8fa203 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -272,18 +272,6 @@ func WithPrivileged(privileged bool) CtrCreateOption {
}
}
-// WithNoNewPrivs sets the noNewPrivs flag in the container runtime
-func WithNoNewPrivs(noNewPrivs bool) CtrCreateOption {
- return func(ctr *Container) error {
- if ctr.valid {
- return ErrCtrFinalized
- }
-
- ctr.config.NoNewPrivs = noNewPrivs
- return nil
- }
-}
-
// WithSELinuxLabels sets the mount label for SELinux
func WithSELinuxLabels(processLabel, mountLabel string) CtrCreateOption {
return func(ctr *Container) error {