summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-05-01 10:36:39 +0900
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit879dc2984771e5a24a01bd752d3fa3ebfeccb1ff (patch)
tree13665afc6a00e240cca75c259b98eba74aebcbdd /src
parentde675c5e1e7be07abfcdd7990b3c947517c2ef06 (diff)
load-fragment: allow to specify RestrictNamespaces= multiple times
If multiple RestrictNamespaces= settings are set, then merge the settings. This also drops supporting "~yes" and "~no".
Diffstat (limited to 'src')
-rw-r--r--src/shared/nsflags.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/nsflags.h b/src/shared/nsflags.h
index 7f2b94d16..509a3240c 100644
--- a/src/shared/nsflags.h
+++ b/src/shared/nsflags.h
@@ -26,6 +26,8 @@
#if 0 /// UNNEEDED by elogind
#endif // 0
+#define NAMESPACE_FLAGS_INITIAL ((unsigned long) -1)
+
int namespace_flags_from_string(const char *name, unsigned long *ret);
int namespace_flags_to_string(unsigned long flags, char **ret);