From 10b1d42e579ae1ca6e022b61c3e5a44e1f3f2b80 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 3 Aug 2019 05:05:43 +0900 Subject: [PATCH] unit: make logind can access ESP Fixes the following error: ``` logind[601]: Failed to open file system "/dev/block/259:1": Operation not permitted ``` --- units/systemd-logind.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in index 927f97e94e..c6f5b81c1d 100644 --- a/units/systemd-logind.service.in +++ b/units/systemd-logind.service.in @@ -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