mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 07:40:28 +01:00
agents: don't require root agents to be part of a login session
Which they won't always be in minimal environments.
This commit is contained in:
parent
050f4b761e
commit
10dc8e78ca
1 changed files with 5 additions and 4 deletions
|
|
@ -280,10 +280,11 @@ impl_agent_manager_register (NMAgentManager *self,
|
|||
goto done;
|
||||
}
|
||||
|
||||
if (!nm_session_monitor_uid_has_session (priv->session_monitor,
|
||||
sender_uid,
|
||||
NULL,
|
||||
&local)) {
|
||||
if ( 0 != sender_uid
|
||||
&& !nm_session_monitor_uid_has_session (priv->session_monitor,
|
||||
sender_uid,
|
||||
NULL,
|
||||
&local)) {
|
||||
error = g_error_new_literal (NM_AGENT_MANAGER_ERROR,
|
||||
NM_AGENT_MANAGER_ERROR_SESSION_NOT_FOUND,
|
||||
local && local->message ? local->message : "Session not found");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue