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
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
# 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
}
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 ..."