pass: Add capability for writing to procfs node 17/287917/1
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 31 Jan 2023 03:08:28 +0000 (12:08 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 7 Feb 2023 17:14:16 +0000 (09:14 -0800)
In order to use global memory pressure stall information, pass can
write to the node '/proc/pressure/memory' and it requires
'CAP_DAC_OVERRIDE' capability. Thus, this adds the capability to
service file.

Change-Id: I35f865e503678826459e32f723a46a6812529d34
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
systemd/pass.service.in

index ac5f160..0324dec 100644 (file)
@@ -10,7 +10,7 @@ RestartSec=0
 KillSignal=SIGUSR1
 User=system_fw
 Group=system_fw
-Capabilities=cap_net_admin,cap_sys_ptrace=i
+Capabilities=cap_net_admin,cap_sys_ptrace,cap_dac_override=i
 SecureBits=keep-caps
 
 [Install]