]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: don't try to mount the mqueue fs if we lack the privileges for it 2581/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 11 Feb 2016 02:45:11 +0000 (02:45 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Thu, 11 Feb 2016 02:45:11 +0000 (02:45 +0000)
See https://github.com/systemd/systemd/pull/2576#discussion-diff-52592680

units/dev-mqueue.mount

index 5c11ca7d35023fc06b1831fca01f88f8218b43f4..8d29f96ca62c90160a838c2a8849d66df7e93e9a 100644 (file)
@@ -12,6 +12,7 @@ Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
 DefaultDependencies=no
 Before=sysinit.target
 ConditionPathExists=/proc/sys/fs/mqueue
+ConditionCapability=CAP_SYS_ADMIN
 
 [Mount]
 What=mqueue