mirror of
https://github.com/systemd/systemd.git
synced 2025-08-29 01:49:55 +03:00
units: disable /dev/hugepages in private user namespaces
The mount fails, even though CAP_SYS_ADMIN is granted.
This commit is contained in:
@ -13,6 +13,7 @@ DefaultDependencies=no
|
||||
Before=sysinit.target
|
||||
ConditionPathExists=/sys/kernel/mm/hugepages
|
||||
ConditionCapability=CAP_SYS_ADMIN
|
||||
ConditionVirtualization=!private-users
|
||||
|
||||
[Mount]
|
||||
What=hugetlbfs
|
||||
|
Reference in New Issue
Block a user