pass: Add capability for writing to procfs node 99/288199/1 accepted/tizen/7.0/unified/20230216.140317
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 31 Jan 2023 03:08:28 +0000 (12:08 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 13 Feb 2023 12:05:51 +0000 (21:05 +0900)
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: I1765f79e85908879fa8917212059b761bab45821
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
systemd/pass.service.in

index ac5f160199ba96cc526d7a4158f54419ca1e327f..0324dec4c62a7bcf3ebafb12844ec96297fa6d24 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]