From: jin-gyu.kim Date: Wed, 29 Apr 2020 04:50:34 +0000 (+0900) Subject: Use tizen-build.conf to distinguish a profile X-Git-Tag: submit/tizen/20200507.072454^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22366544c3a96c7f113cbf48662cb58d82cc53b5;p=platform%2Fcore%2Fsecurity%2Fsecurity-config.git Use tizen-build.conf to distinguish a profile - Check profile info before moving failed lists of systemd units. Change-Id: Iebc30d76a1ee5d007ef810c3c92c9de62213188c --- diff --git a/test/new_service_test/systemd_test_util b/test/new_service_test/systemd_test_util index 9e7566b..0856fa7 100644 --- a/test/new_service_test/systemd_test_util +++ b/test/new_service_test/systemd_test_util @@ -12,8 +12,8 @@ dbus_service_dir="/usr/share/dbus-1/system-services/" # $1 : file path, $2 : file name function move_systemd_unit { - # TODO : This is temporary. Checking onlycap may need to be considered later. - if [ -e "/etc/smack/onlycap" ] + profile_info=$(grep "TZ_BUILD_PROFILE" /etc/tizen-build.conf | awk -F '[=]' '{ print $2 }') + if [ "$profile_info" == "mobile" ] || [ "$profile_info" == "wearable" ] then if [ ! -d $not_permitted_unit_path ] then