Change sdbd running with User Smack label. 88/26288/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.m14.3_ivi accepted/tizen/3.0.2014.q3/common/20141020.094325 accepted/tizen/common/20140822.100512 accepted/tizen/ivi/20140822.151436 submit/tizen_3.0.2014.q3_common/20141020.093726 submit/tizen_common/20140822.082427 submit/tizen_ivi/20140822.082357 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release
authorAlice Liu <alice.liu@intel.com>
Wed, 20 Aug 2014 08:27:03 +0000 (16:27 +0800)
committerAlice Liu <alice.liu@intel.com>
Wed, 20 Aug 2014 08:27:03 +0000 (16:27 +0800)
According the Smack rules in Tizen 3, sdbd should be
running with User Smack label. This will fix the issue
that Xwalk cannot access the applicaiton package pushed
by SDB.

Change-Id: I25624ef73413825d8ffd2c5d36e5aff3385a9f37
Signed-off-by: Alice Liu <alice.liu@intel.com>
packaging/sdbd_emulator.service
packaging/sdbd_tcp.service

index 3bcbcf1..78b5fc7 100644 (file)
@@ -7,6 +7,7 @@ Type=forking
 Environment=DISPLAY=:0
 PIDFile=/tmp/.sdbd.pid
 RemainAfterExit=yes
+SmackExecLabel=User
 ExecStart=/bin/sh -c "/usr/sbin/sdbd `/usr/bin/awk '{match($0, /sdb_port=([0-9]+)/,port_match); match($0, /vm_name=([^, ]*)/,vm_match); print \"--emulator=\" vm_match[1] \":\" port_match[1] \" --connect-to=10.0.2.2:26099\" \" --sensors=10.0.2.2:\"port_match[1]+3 \" --listen-port=\"port_match[1]+1 }' /proc/cmdline`"
 
 [Install]
index 3818b6d..6872e01 100644 (file)
@@ -7,4 +7,5 @@ Type=forking
 Environment=DISPLAY=:0
 PIDFile=/tmp/.sdbd.pid
 RemainAfterExit=yes
+SmackExecLabel=User
 ExecStart=/usr/sbin/sdbd --listen=26101