]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
unit: make logind can access ESP
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 2 Aug 2019 20:05:43 +0000 (05:05 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 3 Aug 2019 12:16:29 +0000 (14:16 +0200)
Fixes the following error:
```
logind[601]: Failed to open file system "/dev/block/259:1": Operation not permitted
```

units/systemd-logind.service.in

index 927f97e94e8c8b0da105c7457d2f1d51da1ca4d3..c6f5b81c1d7641ad4640657e04803088a134a4cf 100644 (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