chiark / gitweb /
load-fragment: allow to specify RestrictNamespaces= multiple times
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 May 2018 01:36:39 +0000 (10:36 +0900)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
If multiple RestrictNamespaces= settings are set, then merge the settings.
This also drops supporting "~yes" and "~no".

src/shared/nsflags.h

index 7f2b94d16ce2f9d3086192f346a6ce3b330fc458..509a3240c67d7307e65476802e02b701d21eec3d 100644 (file)
@@ -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);