check_app_gids(app_id, allowed_gids);
}
-void check_path(const std::string &path, const std::string &label) {
+void check_path(const std::string &path, const std::string &label, bool transmute, bool execute) {
nftw_expected_label = label;
- nftw_expected_transmute = true;
- nftw_expected_exec = false;
+ nftw_expected_transmute = transmute;
+ nftw_expected_exec = execute;
// check labels
int result = nftw(path.c_str(), &nftw_check_sm_labels, FTW_MAX_FDS, FTW_PHYS);
const privileges_t &denied_privs,
const std::vector<std::string> &allowed_groups,
bool isHybrid = false);
-void check_path(const std::string &path, const std::string &label);
+void check_path(const std::string &path, const std::string &label,
+ bool transmute = true, bool execute = false);
void check_app_path_after_install(int app_num, const char *pkgId, bool others_enabled=false);
void check_app_after_uninstall(const std::string &app_id, const std::string &pkg_id,
const bool is_pkg_removed);