diff options
| author | Sebastien Bacher <seb128@ubuntu.com> | 2020-05-19 16:38:36 +0200 |
|---|---|---|
| committer | Sebastien Bacher <seb128@ubuntu.com> | 2020-05-19 17:09:07 +0200 |
| commit | ccf6dc06bbee82c3d49f451545c5317337e0777e (patch) | |
| tree | a8fddc8c6e2b3b99bebab1d5bb2a64581eff4bfd /src/nm-audit-manager.c | |
| parent | f109e55ef130ce84054d5ba3acf4b71cd8c7564a (diff) | |
| parent | 7ffed1e6136de75188f10ba8763bcb942f932f8e (diff) | |
Merge remote-tracking branch 'salsa/debian/master' into ubuntu/master
Diffstat (limited to 'src/nm-audit-manager.c')
| -rw-r--r-- | src/nm-audit-manager.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nm-audit-manager.c b/src/nm-audit-manager.c index b219b35a..26ba48f5 100644 --- a/src/nm-audit-manager.c +++ b/src/nm-audit-manager.c @@ -11,8 +11,9 @@ #include <libaudit.h> #endif -#include "nm-auth-subject.h" +#include "nm-libnm-core-intern/nm-auth-subject.h" #include "nm-config.h" +#include "nm-dbus-manager.h" #include "settings/nm-settings-connection.h" /*****************************************************************************/ @@ -195,11 +196,12 @@ _audit_log_helper (NMAuditManager *self, else if (G_IS_DBUS_METHOD_INVOCATION (subject_context)) { GDBusMethodInvocation *context = subject_context; - subject = subject_free = nm_auth_subject_new_unix_process_from_context (context); + subject = subject_free = nm_dbus_manager_new_auth_subject_from_context (context); } else g_warn_if_reached (); } - if (subject && nm_auth_subject_is_unix_process (subject)) { + if (subject && + nm_auth_subject_get_subject_type (subject) == NM_AUTH_SUBJECT_TYPE_UNIX_PROCESS) { pid = nm_auth_subject_get_unix_process_pid (subject); uid = nm_auth_subject_get_unix_process_uid (subject); if (pid != G_MAXULONG) { |