chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de675c5
)
load-fragment: allow to specify RestrictNamespaces= multiple times
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 1 May 2018 01:36:39 +0000
(10:36 +0900)
committer
Sven 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
patch
|
blob
|
history
diff --git
a/src/shared/nsflags.h
b/src/shared/nsflags.h
index 7f2b94d16ce2f9d3086192f346a6ce3b330fc458..509a3240c67d7307e65476802e02b701d21eec3d 100644
(file)
--- 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);