From 84905e75233699b895ed60d00f34e9b13f53a59d Mon Sep 17 00:00:00 2001 From: Alice Liu Date: Wed, 20 Aug 2014 16:27:03 +0800 Subject: [PATCH] Change sdbd running with User Smack label. 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 --- packaging/sdbd_emulator.service | 1 + packaging/sdbd_tcp.service | 1 + 2 files changed, 2 insertions(+) diff --git a/packaging/sdbd_emulator.service b/packaging/sdbd_emulator.service index 3bcbcf1..78b5fc7 100644 --- a/packaging/sdbd_emulator.service +++ b/packaging/sdbd_emulator.service @@ -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] diff --git a/packaging/sdbd_tcp.service b/packaging/sdbd_tcp.service index 3818b6d..6872e01 100644 --- a/packaging/sdbd_tcp.service +++ b/packaging/sdbd_tcp.service @@ -7,4 +7,5 @@ Type=forking Environment=DISPLAY=:0 PIDFile=/tmp/.sdbd.pid RemainAfterExit=yes +SmackExecLabel=User ExecStart=/usr/sbin/sdbd --listen=26101 -- 2.7.4