[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
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);
}