Fixing failing 'smack13_4_*' libsmack tests 61/19761/3
authorZbigniew Jasinski <z.jasinski@samsung.com>
Wed, 16 Apr 2014 15:14:12 +0000 (17:14 +0200)
committerZbigniew Jasinski <z.jasinski@samsung.com>
Thu, 17 Apr 2014 09:19:22 +0000 (11:19 +0200)
[Bug/Feature] Failing 'smack13_4_*' libsmack tests.
[Cause] Not enough privileges for testing suite to access /opt/home/app
[Solution] Set the right access 'x' to 'User' label.
[Verification] Build, install and run tests on smack kernel:
libsmack-test --output=text --regexp='smack13_4_*'

Change-Id: Ia811b3fe8af8b5b3f35ecd5fb991d6a6738f5d1b

tests/libsmack-tests/test_cases.cpp

index d5f72e0..c9d8f96 100644 (file)
@@ -1475,7 +1475,7 @@ void prepareEnvironment(const std::string &subject, const std::string &object, c
     const std::string ruleAll = "x";
 
     SecurityServer::AccessProvider provider(subject);
-    provider.allowAPI("system::homedir", ruleAll);
+    provider.allowAPI("User", ruleAll);
     provider.allowAPI(object, access);
     provider.applyAndSwithToUser(APP_UID, APP_GID);
 }