summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-11 13:55:59 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-11 13:55:59 +0100
commitb8eefa012d595addc96454ad7ac8ee41785d5589 (patch)
tree760681c0ebaeb4864aac7127321ed555228d06fd
parentc8385ece1e3d7207b3898474925d53e9a656c9b5 (diff)
parent6cfc79632fbf594567db7206d1409e953afe3690 (diff)
Merge pull request #2581 from evverx/dev-mqueue-cond
units: don't try to mount the mqueue fs if we lack the privileges for it
-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