From: jin-gyu.kim Date: Mon, 19 Oct 2020 06:12:42 +0000 (+0900) Subject: Change author labels recursively in the upgrade script. X-Git-Tag: submit/tizen/20201019.101508~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a29a5f10b33b4b8faff2c14fa8f034b69432aa9;p=platform%2Fcore%2Fsecurity%2Fsecurity-manager.git Change author labels recursively in the upgrade script. SMACK labels of all resources in trusted directory should be updated. Change-Id: I992ac67fbcb635455fd5eda93e9d8f1a1d0da5a1 --- diff --git a/policy/updates/update-policy-to-v9.sh b/policy/updates/update-policy-to-v9.sh index 9bc9a57c..710bb8ea 100755 --- a/policy/updates/update-policy-to-v9.sh +++ b/policy/updates/update-policy-to-v9.sh @@ -35,7 +35,7 @@ do hash=`sqlite3 "$TZ_SYS_DB"/.security-manager.db "SELECT DISTINCT author_hash FROM user_app_pkg_view WHERE pkg_name='$pkg'"` if [ -n "$hash" ] then - chsmack -a "User::Author::$hash" "$dir" + chsmack -r -a "User::Author::$hash" "$dir" fi done