mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-03 18:20:29 +01:00
bus-manager/dhcp: don't log pointer values directly
Direct pointer values can be used to circumvent ASLR. Obfuscate the pointer values.
This commit is contained in:
parent
ed32651ab8
commit
a05dbeb31f
1 changed files with 6 additions and 2 deletions
|
|
@ -247,7 +247,9 @@ private_server_closed_connection (GDBusConnection *conn,
|
|||
CloseConnectionInfo *info;
|
||||
|
||||
/* Clean up after the connection */
|
||||
_LOGD ("(%s) closed connection %p on private socket", s->tag, conn);
|
||||
_LOGD ("(%s) closed connection "NM_HASH_OBFUSCATE_PTR_FMT" on private socket",
|
||||
s->tag,
|
||||
NM_HASH_OBFUSCATE_PTR (conn));
|
||||
|
||||
info = g_slice_new0 (CloseConnectionInfo);
|
||||
info->connection = conn;
|
||||
|
|
@ -285,7 +287,9 @@ private_server_new_connection (GDBusServer *server,
|
|||
obj_mgr_data->fake_sender = sender;
|
||||
c_list_link_tail (&s->object_mgr_lst_head, &obj_mgr_data->object_mgr_lst);
|
||||
|
||||
_LOGD ("(%s) accepted connection %p on private socket", s->tag, conn);
|
||||
_LOGD ("(%s) accepted connection "NM_HASH_OBFUSCATE_PTR_FMT" on private socket",
|
||||
s->tag,
|
||||
NM_HASH_OBFUSCATE_PTR (conn));
|
||||
|
||||
/* Emit this for the manager.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue