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:
Alexander Larsson
2015-11-26 17:37:46 +01:00
parent f5cadc018b
commit 47c705db03

View File

@@ -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 ("");
}
}