]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: make sure logind can properly reference drm char class
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Jul 2019 11:14:53 +0000 (13:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Jul 2019 11:30:56 +0000 (13:30 +0200)
Similar to the previous fix.

units/systemd-logind.service.in

index 1b37290d4f5a2ad3853434e550429149407e87f5..927f97e94e8c8b0da105c7457d2f1d51da1ca4d3 100644 (file)
@@ -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