privilege: Replace the code that accesses the attr with the cynara API
authorUnsung Lee <unsung.lee@samsung.com>
Fri, 10 Jan 2025 09:00:21 +0000 (18:00 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 15 Jan 2025 01:17:06 +0000 (10:17 +0900)
commit0c6bf5daa37eb9cd9544d45ebd95bbe706fa5dc0
tree7643d40a1b24c6e3f32c57bcc4544f501c67ce29
parent1658f74281bd38128fe07a30e816e97b34056ca1
privilege: Replace the code that accesses the attr with the cynara API

Replace the code that directly accesses /proc/self/attr/current
with a cynara API called cynara_creds_self_get_client.
This is because, direct accessing to /proc/self/attr/current is invalid when SMACK is disabled.

Change-Id: I5b99e5af4ad6be446a52ea6f0caa03720826e2ed
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
lib/CMakeLists.txt
packaging/pass.spec
src/util/privilege.c
tests/integration-test/CMakeLists.txt
tools/resource-monitor/CMakeLists.txt