Only when smack is enabled, run chsmack
authorSeungYeup Kim <sy2004.kim@samsung.com>
Wed, 21 Nov 2012 07:18:02 +0000 (16:18 +0900)
committerSeungYeup Kim <sy2004.kim@samsung.com>
Wed, 21 Nov 2012 07:18:02 +0000 (16:18 +0900)
packaging/libsqlfs.spec
sqlfs-mount

index 08bc7e6..dabd36a 100755 (executable)
@@ -1,7 +1,7 @@
 Name:       libsqlfs
 Summary:    FUSE module for filesystem on top of an SQLite db
 Version:    1.2
-Release:    9
+Release:    10
 Group:      TO_BE/FILLED_IN
 License:    LGPLv2
 Source0:    libsqlfs-%{version}.tar.gz
index da7498b..99317e1 100755 (executable)
@@ -13,4 +13,7 @@ else
 fi
 
 #smack label requested by kd0228.kim
-chsmack -a '*' /opt/var/kdb/db
+if [ -f /usr/lib/rpm-plugins/msm.so ]
+then
+    chsmack -a '*' /opt/var/kdb/db
+fi