[systemd-devel] [PATCH] units: skip mounting /dev/hugepages if we don't have CAP_SYS_ADMIN

Lennart Poettering lennart at poettering.net
Wed Dec 3 17:43:46 PST 2014


On Wed, 12.11.14 15:19, Michal Sekletar (msekleta at redhat.com) wrote:

Applied! Thanks!

> ---
>  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
> 
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list