Skip to content

Commit 4bb30ae

Browse files
committed
units: disable /dev/hugepages in private user namespaces
The mount fails, even though CAP_SYS_ADMIN is granted.
1 parent 0809d77 commit 4bb30ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

units/dev-hugepages.mount

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ DefaultDependencies=no
1313
Before=sysinit.target
1414
ConditionPathExists=/sys/kernel/mm/hugepages
1515
ConditionCapability=CAP_SYS_ADMIN
16+
ConditionVirtualization=!private-users
1617

1718
[Mount]
1819
What=hugetlbfs

0 commit comments

Comments
 (0)