mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 16:48:33 -05:00
portals: Only give blanket access to session-*.scope systemd cgroup
This way we won't give false positives if the user systemd session is not running.
This commit is contained in:
@@ -966,7 +966,8 @@ got_credentials_cb (GObject *source_object,
|
||||
info->app_id = g_strdup (name);
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (g_str_has_prefix (scope, "session-") &&
|
||||
g_str_has_suffix (scope, ".scope"))
|
||||
info->app_id = g_strdup ("");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user