diff options
| author | Michael Biebl <biebl@debian.org> | 2020-04-11 21:30:33 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2020-04-11 21:30:33 +0200 |
| commit | f914c41532a9e4f2bb44be074466b62e4cac8db3 (patch) | |
| tree | 046e8e7a186afecf299cd80d62fa1c93903dbecf /src/nm-audit-manager.c | |
| parent | 19e73abd360f0198f94ce49f36ddf009056f6324 (diff) | |
| parent | 1e5977b62f896e844b548c3007ace9e1dfa7f9ed (diff) | |
Update upstream source from tag 'upstream/1.23.90'
Update to upstream version '1.23.90' with Debian dir 38c3873648b51c73a9e448ccb2ac18152c2b3f85
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) { |