mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +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:
parent
0809d7740c
commit
4bb30aeaf8
@ -13,6 +13,7 @@ DefaultDependencies=no
|
||||
Before=sysinit.target
|
||||
ConditionPathExists=/sys/kernel/mm/hugepages
|
||||
ConditionCapability=CAP_SYS_ADMIN
|
||||
ConditionVirtualization=!private-users
|
||||
|
||||
[Mount]
|
||||
What=hugetlbfs
|
||||
|
Loading…
Reference in New Issue
Block a user