From: jin-gyu.kim Date: Fri, 7 Jul 2017 05:41:44 +0000 (+0900) Subject: Use the realpath of telephony-daemon when giving capability. X-Git-Tag: submit/tizen/20170707.072106^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d79c73aaaeb71055635874870e911fd9edcbb105;p=platform%2Fcore%2Fsecurity%2Fsecurity-config.git Use the realpath of telephony-daemon when giving capability. - Currently, tv and ivi use the symlink for telephony-daemon. - Giving the capability to the symlink is not possible, therefore convert it as the realpath. Change-Id: Ifec9cc85588a7bff29abbacffbd7cab43c11bab6 --- diff --git a/config/set_capability b/config/set_capability index 98f8d1e..aece105 100755 --- a/config/set_capability +++ b/config/set_capability @@ -422,8 +422,9 @@ fi # Required cap_net_admin # cap_net_admin for network interface up/down +# some profiles create the symlink to telephony-daemon if [ -e "/usr/bin/telephony-daemon" ] -then /usr/sbin/setcap cap_net_admin=eip /usr/bin/telephony-daemon +then /usr/sbin/setcap cap_net_admin=eip $(/usr/bin/readlink -f /usr/bin/telephony-daemon) fi # Package platform/core/system/session-utils