add new smack label - system::crash
authorKidong Kim <kd0228.kim@samsung.com>
Wed, 30 Jan 2013 01:51:54 +0000 (10:51 +0900)
committerKidong Kim <kd0228.kim@samsung.com>
Wed, 30 Jan 2013 01:51:54 +0000 (10:51 +0900)
packaging/libprivilege-control-conf.manifest
smack_default_labeling
smack_default_rules

index 3720601..1d61cdd 100644 (file)
@@ -17,6 +17,7 @@
                        <label name="system::use_internet"/>
                        <label name="system::homedir"/>
                        <label name="system::syslogd"/>
+                       <label name="system::crash"/>
                </provide>
        </define>
        <request>
index 6f9b8b7..ec1720e 100644 (file)
@@ -8,11 +8,10 @@ chown 5000:5000 /home/app
 find /home/app -print0 | xargs -0 chsmack -a 'system::homedir'
 find /home/app -type d -print0 | xargs -0 chsmack -t
 
-chsmack -a 'system::vconf' /opt/var/kdb/db
-chsmack -t /opt/var/kdb/db
-
 # set vconf label when first boot
 if [ ! -e /opt/etc/.vconf_labeling ]; then
+       chsmack -a 'system::vconf' /opt/var/kdb/db
+       chsmack -t /opt/var/kdb/db
        find /opt/var/kdb/db -print0 | xargs -0 chsmack -a 'system::vconf'
        find /opt/var/kdb/db -type d -print0 | xargs -0 chsmack -t
        find /opt/var/kdb/file -print0 | xargs -0 chsmack -a 'system::vconf'
@@ -110,3 +109,6 @@ find $SHARE_DIR/live_magazine -print0 | xargs -0 chsmack -a 'live-magazine::data
 find $SHARE_DIR/live_magazine -type d -print0 | xargs -0 chsmack -t
 chsmack -a 'dailybriefing' $APPS_DIR/com.samsung.dailybriefing-common/data/db/*
 chsmack -a 'menu-screen' $APPS_DIR/com.samsung.menu-screen/data/.menu.db*
+
+find /opt/usr/share/crash -print0 | xargs -0 chsmack -a 'system::crash'
+find /opt/usr/share/crash -type d -print0 | xargs -0 chsmack -t
index 55ed2b4..b27cb47 100644 (file)
@@ -53,4 +53,4 @@ _ resman::db rw
 _ live-magazine::db rw
 _ live-magazine::data arwxt
 _ wrt-commons::db_wrt_custom_handler rw
-
+_ system::crash arwxt