Add WRT condition to apply smack label 05/20905/1 submit/tizen_common/20140521.163740 submit/tizen_common/20140522.130648 submit/tizen_common/20140522.135644
authorJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Tue, 13 May 2014 13:16:53 +0000 (15:16 +0200)
committerJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Tue, 13 May 2014 16:32:47 +0000 (18:32 +0200)
Change-Id: I571c61f565b0af58bc3cd07ea2ecd5c0b217b988
Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
tool/src/ail_fota.c
tool/src/initdb.c

index 3c0dbca..d9a129f 100644 (file)
@@ -276,11 +276,12 @@ int main(int argc, char *argv[])
                _E("cannot chown.");
        }
 
+#ifdef WRT_SMACK_ENABLED
        const char *argv_smack[] = { "/usr/bin/chsmack", "-a", APP_INFO_DB_LABEL, APP_INFO_DB_FILE, NULL };
        xsystem(argv_smack);
        const char *argv_smackjn[] = { "/usr/bin/chsmack", "-a", APP_INFO_DB_LABEL, APP_INFO_DB_FILE_JOURNAL, NULL };
        xsystem(argv_smackjn);
-
+#endif
        return AIL_ERROR_OK;
 }
 
index ff49c9a..eefb9b8 100755 (executable)
@@ -276,11 +276,12 @@ int main(int argc, char *argv[])
                _E("cannot chown.");
        }
 
+#ifdef WRT_SMACK_ENABLED
        const char *argv_smack[] = { "/usr/bin/chsmack", "-a", APP_INFO_DB_LABEL, APP_INFO_DB_FILE, NULL };
        xsystem(argv_smack);
        const char *argv_smackjn[] = { "/usr/bin/chsmack", "-a", APP_INFO_DB_LABEL, APP_INFO_DB_FILE_JOURNAL, NULL };
        xsystem(argv_smackjn);
-
+#endif
        return AIL_ERROR_OK;
 }