kdbus: Replace the code that reads the attr with check code 44/317944/1 accepted/tizen_unified accepted/tizen_unified_x accepted/tizen_unified_x_asan accepted/tizen/unified/20250113.094324 accepted/tizen/unified/x/20250113.143053 accepted/tizen/unified/x/asan/20250211.003308
authorUnsung Lee <unsung.lee@samsung.com>
Fri, 10 Jan 2025 02:23:33 +0000 (11:23 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Fri, 10 Jan 2025 04:50:58 +0000 (13:50 +0900)
commite8e31c561a43ae97759e2279b2ff5856d9ee50fb
treed2513a5237c564d40e9f2cc6df1cec9577ff5f3d
parentfebe514d891c6fc7f7e597606c486d7e99ce29a5
kdbus: Replace the code that reads the attr with check code

Replace the code that directly accesses and read /proc/self/attr/current
with check code to /sys/fs/smackfs.
This is because, direct accessing and reading to /proc/self/attr/current
is invalid when SMACK is disabled.

Change-Id: I4d74377c0e7cd0d55e8720e692e49bb36c3ecd6e
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
packaging/linux-tizen-modules-source.spec
tests/kdbus/kdbus-util.c