Common : add permission for internal apps and demons 18/132818/6 accepted/tizen/unified/20170609.203707 submit/tizen/20170609.010502
authorlokilee73 <changjoo.lee@samsung.com>
Thu, 8 Jun 2017 01:03:13 +0000 (10:03 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Thu, 8 Jun 2017 13:03:14 +0000 (22:03 +0900)
When notification is on the quick pannel, popup has to be activated by touching it
. But now, only apps and demons that have the authority of root can do it.
So change the method to checking privilege about apps and demons.

Change-Id: I63277d81afc68d4abea4c69847668b954ab4d7d5
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
signal-sender/org.tizen.system-signal-sender.xml
src/launcher/launcher.conf

index 2e0fb33..ab923ff 100755 (executable)
@@ -6,4 +6,7 @@
        <ui-application appid="org.tizen.system-signal-sender" exec="/usr/apps/org.tizen.system-signal-sender/bin/system-signal-sender" nodisplay="true" multiple="false" type="capp" taskmanage="false">
                <label>System signal sender</label>
        </ui-application>
+       <privileges>
+               <privilege>http://tizen.org/privilege/power</privilege>
+       </privileges>
 </manifest>
index c2ce734..b3e3eba 100755 (executable)
@@ -5,7 +5,12 @@
         <allow own="org.tizen.system.popup"/>
         <allow send_destination="org.tizen.system.popup"/>
     </policy>
+
     <policy context="default">
         <deny send_destination="org.tizen.system.popup"/>
+
+        <check send_destination="org.tizen.system.popup"
+                send_interface="org.tizen.system.popup.System"
+                privilege="http://tizen.org/privilege/power"/>
     </policy>
 </busconfig>