Add API functions smack_pid_have_access and get_smack_label_from_process.
authorJanusz Kozerski <j.kozerski@samsung.com>
Mon, 6 May 2013 12:34:13 +0000 (14:34 +0200)
committerGerrit Code Review <gerrit2@kim11>
Wed, 29 May 2013 15:14:41 +0000 (00:14 +0900)
commit6f56420b6462378935cf2a8521aa5058cb9fe8c8
treebca69b6effa6de08978e1ae37f6370e25870899c
parent63e093e7c44b5b82a06fdd08ed278ec1d0aaca8d
Add API functions smack_pid_have_access and get_smack_label_from_process.

[Issue#]   SSDWSSP-220
[Feature]  Add new function: smack_pid_have_access. This function calls smack_have_access, and if there's no access granted then check if process have CAP_MAC_OVERRIDE.
[Problem]  N/A
[Cause]    N/A
[Solution] N/A

[Verification] Build, install.

Change-Id: If319fd7b176d9a7e1ecb38458f6178e5e7f9865c
CMakeLists.txt
include/privilege-control.h
packaging/libprivilege-control.spec
src/privilege-control.c