#include <memory>
#include <fstream>
#include <sstream>
+#include <set>
#include <fcntl.h>
#include <errno.h>
result = test_have_all_accesses(rules);
RUNNER_ASSERT_MSG_BT(result == 1, "Permissions not added.");
+ std::set<unsigned> groups_before;
+ read_user_gids(groups_before, APP_UID);
+
result = perm_app_set_privilege(app_id, type, app_path);
RUNNER_ASSERT_MSG_BT(result == PC_OPERATION_SUCCESS,
" Error in perm_app_set_privilege. Error: " << result);
RUNNER_ASSERT_MSG_BT(result == 0,
" Process label " << label << " is incorrect");
- check_groups(dac_file);
+ check_groups(groups_before, dac_file);
}
/**