[systemd-devel] [PATCH] units: skip mounting /dev/hugepages if we don't have CAP_SYS_ADMIN
Michal Sekletar
msekleta at redhat.com
Wed Nov 12 06:19:42 PST 2014
---
units/dev-hugepages.mount | 1 +
1 file changed, 1 insertion(+)
diff --git a/units/dev-hugepages.mount b/units/dev-hugepages.mount
index d711fae..882adb4 100644
--- a/units/dev-hugepages.mount
+++ b/units/dev-hugepages.mount
@@ -12,6 +12,7 @@ Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
DefaultDependencies=no
Before=sysinit.target
ConditionPathExists=/sys/kernel/mm/hugepages
+ConditionCapability=CAP_SYS_ADMIN
[Mount]
What=hugetlbfs
--
1.8.3.1
More information about the systemd-devel
mailing list