diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-10-21 23:00:38 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-10-26 20:12:52 -0400 |
commit | 4bb30aeaf8e756b20d66e13af2eac0c5a30b01fa (patch) | |
tree | c3db36e7bbfd3b65121603464e7ce9774261bd5b /units/dev-hugepages.mount | |
parent | 0809d7740c5cf988e049781b4b80e14a3bbefb70 (diff) |
units: disable /dev/hugepages in private user namespaces
The mount fails, even though CAP_SYS_ADMIN is granted.
Diffstat (limited to 'units/dev-hugepages.mount')
-rw-r--r-- | units/dev-hugepages.mount | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/units/dev-hugepages.mount b/units/dev-hugepages.mount index 882adb4545..489cc777e4 100644 --- a/units/dev-hugepages.mount +++ b/units/dev-hugepages.mount @@ -13,6 +13,7 @@ DefaultDependencies=no Before=sysinit.target ConditionPathExists=/sys/kernel/mm/hugepages ConditionCapability=CAP_SYS_ADMIN +ConditionVirtualization=!private-users [Mount] What=hugetlbfs |