summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-07-17 13:58:22 +0200
committerMatthew Heon <matthew.heon@pm.me>2020-07-22 14:05:20 -0400
commite21a6368f9308292641ed5ce58321b1cd46abdc9 (patch)
tree3965dc2cfc5cea33cb04b10cf528f7570f3b38f5 /libpod
parent92186cbd28df57bda027c90eb3715c8a636c1037 (diff)
downloadpodman-e21a6368f9308292641ed5ce58321b1cd46abdc9.tar.gz
podman-e21a6368f9308292641ed5ce58321b1cd46abdc9.tar.bz2
podman-e21a6368f9308292641ed5ce58321b1cd46abdc9.zip
abi: set default umask and rlimits
the code got lost in the migration to podman 2.0, reintroduce it. Closes: https://github.com/containers/podman/issues/6989 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> <MH: Fixed build> Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/define/config.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/libpod/define/config.go b/libpod/define/config.go
index 900a363d8..64b24d9e2 100644
--- a/libpod/define/config.go
+++ b/libpod/define/config.go
@@ -75,3 +75,13 @@ const JSONLogging = "json-file"
// NoLogging is the string conmon expects when specifying to use no log driver whatsoever
const NoLogging = "none"
+
+// Strings used for --sdnotify option to podman
+const (
+ SdNotifyModeContainer = "container"
+ SdNotifyModeConmon = "conmon"
+ SdNotifyModeIgnore = "ignore"
+)
+
+// DefaultRlimitValue is the value set by default for nofile and nproc
+const RLimitDefaultValue = uint64(1048576)