aboutsummaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-01-10 16:42:49 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-12 17:01:36 +0000
commit9c5a42eb1fcff8b99cc99ce307f51567efec9b61 (patch)
treea0b019a71f0b70cd634d91f879a5d30a128f2e6f /libpod/options.go
parent6e8100cf2e70c8c6b5a8504298d1e295a288a0b1 (diff)
downloadpodman-9c5a42eb1fcff8b99cc99ce307f51567efec9b61.tar.gz
podman-9c5a42eb1fcff8b99cc99ce307f51567efec9b61.tar.bz2
podman-9c5a42eb1fcff8b99cc99ce307f51567efec9b61.zip
Remove unused fields from runtime config
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #212 Approved by: rhatdan
Diffstat (limited to 'libpod/options.go')
-rw-r--r--libpod/options.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 1429f16c3..8a9cf94b6 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -200,33 +200,6 @@ func WithTmpDir(dir string) RuntimeOption {
}
}
-// WithSELinux enables SELinux on the container server
-func WithSELinux() RuntimeOption {
- return func(rt *Runtime) error {
- if rt.valid {
- return ErrRuntimeFinalized
- }
-
- rt.config.SelinuxEnabled = true
-
- return nil
- }
-}
-
-// WithPidsLimit specifies the maximum number of processes each container is
-// restricted to
-func WithPidsLimit(limit int64) RuntimeOption {
- return func(rt *Runtime) error {
- if rt.valid {
- return ErrRuntimeFinalized
- }
-
- rt.config.PidsLimit = limit
-
- return nil
- }
-}
-
// WithMaxLogSize sets the maximum size of container logs
// Positive sizes are limits in bytes, -1 is unlimited
func WithMaxLogSize(limit int64) RuntimeOption {