Re: [net-next 1/1] tipc: Fix namespace violation in tipc_sk_fill_sock_diag

2018-04-04 Thread David Miller
From: GhantaKrishnamurthy MohanKrishna Date: Wed, 4 Apr 2018 14:49:47 +0200 > To fetch UID info for socket diagnostics, we determine the > namespace of user context using tipc socket instance. This > may cause namespace violation, as the kernel will remap based > on UID. > > We fix this by fetc

[net-next 1/1] tipc: Fix namespace violation in tipc_sk_fill_sock_diag

2018-04-04 Thread GhantaKrishnamurthy MohanKrishna
To fetch UID info for socket diagnostics, we determine the namespace of user context using tipc socket instance. This may cause namespace violation, as the kernel will remap based on UID. We fix this by fetching namespace info using the calling userspace netlink socket. Fixes: c30b70deb5f4 (tipc: