Add proper smack label to shortcut_service.db 76/49876/1 accepted/tizen/mobile/20151021.085502 accepted/tizen/tv/20151021.085514 accepted/tizen/wearable/20151021.085520 submit/tizen/20151021.062249
authorYoumin Ha <youmin.ha@samsung.com>
Wed, 21 Oct 2015 06:04:01 +0000 (15:04 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Wed, 21 Oct 2015 06:07:02 +0000 (15:07 +0900)
The shortcut_service.db must be writable by app-installer, but it has _
smack label. This commit changes the smack label to User::Home.

Change-Id: I236b327ca7d9a00914d5404785c94784c0b87edb
Signed-off-by: Youmin Ha <youmin.ha@samsung.com>
packaging/libshortcut.spec

index ff00ce1..11ff7fa 100755 (executable)
@@ -89,6 +89,8 @@ fi
 
 chmod 664 /usr/dbspace/.shortcut_service.db
 chmod 664 /usr/dbspace/.shortcut_service.db-journal
+chsmack -a User::Home /usr/dbspace/.shortcut_service.db
+chsmack -a User::Home /usr/dbspace/.shortcut_service.db-journal
 
 %postun -n %{name} -p /sbin/ldconfig