auth: don't enforce user session
Access to connection configuration should not be blocked by absence of a user session tracked using logind or consolekit. Access control based on UID is sufficient. This patch ensures that the user can always access connections even if he doesn't have a session tracked by logind or consolekit and even when NetworkManager is not built with logind or consolekit support. Please note that presence or absence of a session tracked by logind or consolekit doesn't carry any security information. Acked-By: Thomas Haller <thaller@redhat.com> Acked-By: Dan Williams <dcbw@redhat.com>
This commit is contained in:
@@ -439,13 +439,6 @@ nm_auth_is_subject_in_acl (NMConnection *connection,
|
||||
if (0 == uid)
|
||||
return TRUE;
|
||||
|
||||
/* Reject the request if the request comes from no session at all */
|
||||
if (!nm_session_monitor_session_exists (uid, FALSE)) {
|
||||
if (out_error_desc)
|
||||
*out_error_desc = g_strdup_printf ("No session found for uid %lu", uid);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!nm_session_monitor_uid_to_user (uid, &user)) {
|
||||
if (out_error_desc)
|
||||
*out_error_desc = g_strdup_printf ("Could not determine username for uid %lu", uid);
|
||||
|
Reference in New Issue
Block a user