Skip RegisterSecurityContextForPath in recovery 34/286634/5
authorilho kim <ilho159.kim@samsung.com>
Tue, 10 Jan 2023 13:18:13 +0000 (22:18 +0900)
committerilho kim <ilho159.kim@samsung.com>
Wed, 8 Feb 2023 11:50:43 +0000 (20:50 +0900)
commit15f816537d1a81b1095ea5c5233938d22ec4db02
tree974b7eb2b98348b779a34c0eef9d84529b02b8c9
parentb3bde3a4adc811fc4571e792dfc70682db6deb72
Skip RegisterSecurityContextForPath in recovery

RegisterSecurityContextForPath call is applied to the security manager
database if "owner rw, other ro" exist in the path
In other cases, there is no need to call the function because it only
apply a smack label. Because the smack label is already applied to the
file during package recovery

Change-Id: Ice4fcab75ed67dcf3d8ecae7d4a632a36e6bfda5
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
src/common/security_registration.cc
src/common/security_registration.h
src/common/step/security/step_recover_security.cc