summaryrefslogtreecommitdiff
path: root/units/dev-mqueue.mount
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2016-02-11 02:45:11 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2016-02-11 02:45:11 +0000
commit6cfc79632fbf594567db7206d1409e953afe3690 (patch)
tree73fbc3cea5ba962d8b071e77c2c3ac65e3ea097b /units/dev-mqueue.mount
parent71ab0faceb28dde7efd1e288abb0e0d6a0ac282e (diff)
units: don't try to mount the mqueue fs if we lack the privileges for it
See https://github.com/systemd/systemd/pull/2576#discussion-diff-52592680
Diffstat (limited to 'units/dev-mqueue.mount')
-rw-r--r--units/dev-mqueue.mount1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/dev-mqueue.mount b/units/dev-mqueue.mount
index 5c11ca7d35..8d29f96ca6 100644
--- a/units/dev-mqueue.mount
+++ b/units/dev-mqueue.mount
@@ -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