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>
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]
Environment=DISPLAY=:0
PIDFile=/tmp/.sdbd.pid
RemainAfterExit=yes
+SmackExecLabel=User
ExecStart=/usr/sbin/sdbd --listen=26101