Prevent fix - NULL check after dereference.
[platform/core/security/libprivilege-control.git] / smack_default_labeling
index fcf88b7..ee47733 100644 (file)
@@ -12,6 +12,14 @@ find /home/app -type d -print0 | xargs -0 chsmack -t
 find /opt/usr/media -print0 | xargs -0 chsmack -a 'system::media'
 find /opt/usr/media -type d -print0 | xargs -0 chsmack -t
 
+chsmack -a 'system::share' /dev/shm
+chsmack -t /dev/shm
+
+if [ ! -e /opt/etc/.pkg_smack ]; then
+       /usr/bin/pkg_smack
+       touch /opt/etc/.pkg_smack
+fi
+
 # set vconf label when first boot
 #if [ ! -e /opt/etc/.vconf_labeling ]; then
 #      chsmack -a 'system::vconf' /opt/var/kdb/db
@@ -46,7 +54,7 @@ echo "system::use_internet" > /smack/ambient
 
 # Set label to database files
 chsmack -a 'libaccounts-svc::db' $DBSPACE/.account.db*
-chsmack -a 'wrt-security::db_ace' $DBSPACE/.ace.db*
+#chsmack -a 'wrt-security::db_ace' $DBSPACE/.ace.db*
 chsmack -a 'libslp-alarm::db' $DBSPACE/.alarm.db*
 chsmack -a 'alarm-server::db' $DBSPACE/.alarmmgr.db*
 chsmack -a 'ail::db' $DBSPACE/.app_info.db*