Fix denylist on shared UID apps

This commit is contained in:
topjohnwu 2022-05-18 01:59:45 -07:00
parent 975b1a5e36
commit 34dded3b25

View File

@ -53,10 +53,6 @@ static void rescan_apps() {
struct stat st{}; struct stat st{};
xfstatat(dfd, entry->d_name, &st, 0); xfstatat(dfd, entry->d_name, &st, 0);
int app_id = to_app_id(st.st_uid); int app_id = to_app_id(st.st_uid);
if (app_id_to_pkgs.contains(app_id)) {
// This app ID has been handled
continue;
}
if (auto it = pkg_to_procs.find(entry->d_name); it != pkg_to_procs.end()) { if (auto it = pkg_to_procs.find(entry->d_name); it != pkg_to_procs.end()) {
app_id_to_pkgs[app_id].insert(it->first); app_id_to_pkgs[app_id].insert(it->first);
} }