diff options
author | Thomas Haller <thaller@redhat.com> | 2019-05-05 15:40:04 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-05-13 09:25:05 +0200 |
commit | 58df3f37ea031b77592e6879c7ccea61cbdfd5a0 (patch) | |
tree | b787b37fd793748ba7a473b5a365f99662870286 /src/platform/nm-platform.c | |
parent | 78999f9b611e416dfedd23e23568b2e6df76b7d2 (diff) | |
download | NetworkManager-58df3f37ea031b77592e6879c7ccea61cbdfd5a0.tar.gz |
core: don't log plain pointer values for singletons
Logging pointer values allows to defeat ASLR. Don't do that.
Diffstat (limited to 'src/platform/nm-platform.c')
-rw-r--r-- | src/platform/nm-platform.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c index 7add7dcdbe..a2d4116de1 100644 --- a/src/platform/nm-platform.c +++ b/src/platform/nm-platform.c @@ -221,7 +221,8 @@ nm_platform_setup (NMPlatform *instance) nm_singleton_instance_register (); - nm_log_dbg (LOGD_CORE, "setup %s singleton (%p, %s)", "NMPlatform", singleton_instance, G_OBJECT_TYPE_NAME (instance)); + nm_log_dbg (LOGD_CORE, "setup %s singleton ("NM_HASH_OBFUSCATE_PTR_FMT")", + "NMPlatform", NM_HASH_OBFUSCATE_PTR (instance)); } /** |