From ecc890ecd604eb6ea5eb2b0a2b32a8b5d6156ae7 Mon Sep 17 00:00:00 2001 From: Alexandru Cornea Date: Tue, 2 Jul 2013 11:09:55 +0300 Subject: [PATCH] commenting chsmack --- etc/wrt_commons_create_clean_db.sh | 8 ++++---- packaging/wrt-commons.spec | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/etc/wrt_commons_create_clean_db.sh b/etc/wrt_commons_create_clean_db.sh index 72e9dd7..72671b4 100755 --- a/etc/wrt_commons_create_clean_db.sh +++ b/etc/wrt_commons_create_clean_db.sh @@ -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 } diff --git a/packaging/wrt-commons.spec b/packaging/wrt-commons.spec index 2c41eef..748a49b 100644 --- a/packaging/wrt-commons.spec +++ b/packaging/wrt-commons.spec @@ -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 ..." -- 2.34.1