commenting chsmack
authorAlexandru Cornea <alexandru.cornea@intel.com>
Tue, 2 Jul 2013 08:09:55 +0000 (11:09 +0300)
committerAlexandru Cornea <alexandru.cornea@intel.com>
Tue, 2 Jul 2013 08:09:55 +0000 (11:09 +0300)
etc/wrt_commons_create_clean_db.sh
packaging/wrt-commons.spec

index 72e9dd7c0341b9dd24325c016ee444e812515c49..72671b4dc5112ae82af9e98a2100be3e5dc91e41 100755 (executable)
@@ -24,7 +24,7 @@ function create_db {
     DB_LABEL=""
     if [ -f $dbpath.$name.db ]
     then
-        DB_LABEL=`chsmack $dbpath.$name.db | sed -r "s/.*access=\"([^\"]+)\"/\1/"`
+#        DB_LABEL=`chsmack $dbpath.$name.db | sed -r "s/.*access=\"([^\"]+)\"/\1/"`
     fi
     rm -f $dbpath.$name.db
 
@@ -32,7 +32,7 @@ function create_db {
     JOURNAL_LABEL=""
     if [ -f $dbpath.$name.db-journal ]
     then
-        JOURNAL_LABEL=`chsmack $dbpath.$name.db-journal | sed -r "s/.*access=\"([^\"]+)\"/\1/"`
+#        JOURNAL_LABEL=`chsmack $dbpath.$name.db-journal | sed -r "s/.*access=\"([^\"]+)\"/\1/"`
     fi
     rm -f $dbpath.$name.db-journal
 
@@ -49,13 +49,13 @@ function create_db {
     # restore smack label
     if [ -n "$DB_LABEL" ]
     then
-        chsmack -a $DB_LABEL $dbpath.$name.db
+#        chsmack -a $DB_LABEL $dbpath.$name.db
     fi
 
     # restore smack label
     if [ -n "$JOURNAL_LABEL" ]
     then
-        chsmack -a $JOURNAL_LABEL $dbpath.$name.db-journal
+#        chsmack -a $JOURNAL_LABEL $dbpath.$name.db-journal
     fi
 }
 
index 2c41eefbb409a6c0f6c8136ed24fe0de3674668e..748a49b5186206c8c6bcb60386a9713dac553a3f 100644 (file)
@@ -119,10 +119,10 @@ else
 fi
 
 # Set Smack label for db files
-chsmack -a 'wrt-commons::db_wrt' /opt/dbspace/.wrt.db
-chsmack -a 'wrt-commons::db_wrt' /opt/dbspace/.wrt.db-journal
-chsmack -a 'wrt-commons::db_wrt_custom_handler' /opt/usr/dbspace/.wrt_custom_handler.db
-chsmack -a 'wrt-commons::db_wrt_custom_handler' /opt/usr/dbspace/.wrt_custom_handler.db-journal
+#chsmack -a 'wrt-commons::db_wrt' /opt/dbspace/.wrt.db
+#chsmack -a 'wrt-commons::db_wrt' /opt/dbspace/.wrt.db-journal
+#chsmack -a 'wrt-commons::db_wrt_custom_handler' /opt/usr/dbspace/.wrt_custom_handler.db
+#chsmack -a 'wrt-commons::db_wrt_custom_handler' /opt/usr/dbspace/.wrt_custom_handler.db-journal
 
 echo "[WRT] wrt-commons postinst done ..."