// Common implementation details
-std::string generateAppLabel(const std::string &appId)
+std::string generateProcessLabel(const std::string &appId)
{
return "User::App::" + appId;
}
-std::string generatePkgLabel(const std::string &pkgId)
+std::string generatePathRWLabel(const std::string &pkgId)
{
return "User::Pkg::" + pkgId;
}
const privileges_t &denied_privs)
{
(void) pkg_id;
- std::string smackLabel = generateAppLabel(app_id);
+ std::string smackLabel = generateProcessLabel(app_id);
CynaraTestClient::Client ctc;
std::string SM_PUBLIC_RO_PATH = genPublicROPath(app_num);
int result;
- nftw_expected_label = generatePkgLabel(pkgId);
+ nftw_expected_label = generatePathRWLabel(pkgId);
nftw_expected_transmute = true;
nftw_expected_exec = false;
result = nftw(SM_RW_PATH.c_str(), &nftw_check_sm_labels, FTW_MAX_FDS, FTW_PHYS);
RUNNER_ASSERT_MSG(result == 0, "Unable to check Smack labels for " << SM_RW_PATH);
- nftw_expected_label = generatePkgLabel(pkgId) + "::RO";
+ nftw_expected_label = generatePathRWLabel(pkgId) + "::RO";
nftw_expected_transmute = false;
nftw_expected_exec = false;