Revert "Add smackfs check to Installer service." 17/22817/3
authorJan Cybulski <j.cybulski@samsung.com>
Wed, 11 Jun 2014 12:19:40 +0000 (14:19 +0200)
committerJan Cybulski <j.cybulski@samsung.com>
Wed, 18 Jun 2014 13:06:48 +0000 (15:06 +0200)
This revert is due to moving security-manager to separate repitory
This reverts commit 9d7d2f242d036ed8f07e4afa108709524b1af409.

Change-Id: I40281c8094b58561eef05e3f5941ae74b380fb55
Signed-off-by: Jan Cybulski <j.cybulski@samsung.com>
src/server/service/smack-rules.cpp

index 4319ca9..24e9add 100644 (file)
@@ -226,7 +226,7 @@ bool SmackRules::installPackageRules(const std::string &pkgId) {
              return false;
          }
 
-         if (smack_smackfs_path() != NULL && !smackRules.apply()) {
+         if (!smackRules.apply()) {
              LogError("Failed to apply application rules to kernel");
              return false;
          }
@@ -258,7 +258,7 @@ bool SmackRules::uninstallPackageRules(const std::string &pkgId) {
     try {
         SmackRules rules;
         if (rules.loadFromFile(path)) {
-            if (smack_smackfs_path() != NULL && !rules.clear()) {
+            if (!rules.clear()) {
                 LogWarning("Failed to clear smack kernel rules for pkgId: " << pkgId);
                 // don't stop uninstallation
             }