summaryrefslogtreecommitdiff
path: root/units/systemd-logind.service.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-07-23 13:14:53 +0200
committerLennart Poettering <lennart@poettering.net>2019-07-23 13:30:56 +0200
commit11aa16bb359ded91d68ff5f48fecfafa2a15d3b0 (patch)
tree488f3ed1b2fdc8caad025cfb7cc1ca2c862fbfb2 /units/systemd-logind.service.in
parent31ea9c89d49d16b912cd7c1f241f83402eb8c626 (diff)
downloadsystemd-11aa16bb359ded91d68ff5f48fecfafa2a15d3b0.tar.gz
units: make sure logind can properly reference drm char class
Similar to the previous fix.
Diffstat (limited to 'units/systemd-logind.service.in')
-rw-r--r--units/systemd-logind.service.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in
index 1b37290d4f..927f97e94e 100644
--- a/units/systemd-logind.service.in
+++ b/units/systemd-logind.service.in
@@ -27,6 +27,8 @@ DeviceAllow=char-drm rw
DeviceAllow=char-input rw
DeviceAllow=char-tty rw
DeviceAllow=char-vcs rw
+# Make sure the DeviceAllow= lines above can work correctly when referenceing char-drm
+ExecStartPre=-/sbin/modprobe -abq drm
ExecStart=@rootlibexecdir@/systemd-logind
FileDescriptorStoreMax=512
IPAddressDeny=any