summaryrefslogtreecommitdiff
path: root/src/settings/nm-agent-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/nm-agent-manager.c')
-rw-r--r--src/settings/nm-agent-manager.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/settings/nm-agent-manager.c b/src/settings/nm-agent-manager.c
index 77e7f41c6f..dc50719e1c 100644
--- a/src/settings/nm-agent-manager.c
+++ b/src/settings/nm-agent-manager.c
@@ -526,11 +526,9 @@ agent_compare_func (gconstpointer aa, gconstpointer bb, gpointer user_data)
}
/* Prefer agents in active sessions */
- a_active = nm_session_monitor_uid_active (nm_session_monitor_get (),
- nm_secret_agent_get_owner_uid (a),
+ a_active = nm_session_monitor_uid_active (nm_secret_agent_get_owner_uid (a),
NULL);
- b_active = nm_session_monitor_uid_active (nm_session_monitor_get (),
- nm_secret_agent_get_owner_uid (b),
+ b_active = nm_session_monitor_uid_active (nm_secret_agent_get_owner_uid (b),
NULL);
if (a_active && !b_active)
return -1;
@@ -701,7 +699,7 @@ connection_request_add_agent (Request *parent, NMSecretAgent *agent)
/* Ensure the caller's username exists in the connection's permissions,
* or that the permissions is empty (ie, visible by everyone).
*/
- if (!nm_auth_uid_in_acl (req->connection, nm_session_monitor_get (), agent_uid, NULL)) {
+ if (!nm_auth_uid_in_acl (req->connection, agent_uid, NULL)) {
nm_log_dbg (LOGD_AGENTS, "(%s) agent ignored for secrets request %p/%s (not in ACL)",
nm_secret_agent_get_description (agent),
parent, parent->detail);