1
0
mirror of https://github.com/systemd/systemd synced 2024-07-05 17:39:42 +00:00

unit: make logind can access ESP

Fixes the following error:
```
logind[601]: Failed to open file system "/dev/block/259:1": Operation not permitted
```
This commit is contained in:
Yu Watanabe 2019-08-03 05:05:43 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent a94d2fa81a
commit 10b1d42e57

View File

@ -22,6 +22,7 @@ After=dbus.socket
[Service]
BusName=org.freedesktop.login1
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_MAC_ADMIN CAP_AUDIT_CONTROL CAP_CHOWN CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_FOWNER CAP_SYS_TTY_CONFIG CAP_LINUX_IMMUTABLE
DeviceAllow=block-* r
DeviceAllow=char-/dev/console rw
DeviceAllow=char-drm rw
DeviceAllow=char-input rw