Netdev List
 help / color / mirror / Atom feed
* Consequences of commit 16e5726269611b71c930054ffe9b858c1cea88eb
@ 2012-01-12 19:14 Bart Van Assche
  2012-01-12 20:59 ` Eric Dumazet
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Van Assche @ 2012-01-12 19:14 UTC (permalink / raw)
  To: netdev; +Cc: Eric Dumazet, David S. Miller, Mike Christie, Eric Paris

Hi,

If my analysis is correct commit
16e5726269611b71c930054ffe9b858c1cea88eb ("af_unix: dont send
SCM_CREDENTIALS by default") changes the value of
NETLINK_CREDS(skb)->pid from the sender pid into zero. Does that mean
that the code using that construct did work in kernel 3.1 but that it
is broken in kernel 3.2 ? Should that commit be reverted or will
someone fix the code that uses NETLINK_CREDS() ? Would changing
NETLINK_CREDS(skb)->pid into NETLINK_CB(skb).pid be sufficient ?

Thanks,

Bart.

$ git grep 'NETLINK_CREDS([a-zA-Z0-9_]*)->pid'
drivers/scsi/scsi_netlink.c:	pid = NETLINK_CREDS(skb)->pid;
kernel/audit.c:	pid  = NETLINK_CREDS(skb)->pid;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-13  7:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-12 19:14 Consequences of commit 16e5726269611b71c930054ffe9b858c1cea88eb Bart Van Assche
2012-01-12 20:59 ` Eric Dumazet
2012-01-13  5:50   ` Eric Dumazet
2012-01-13  7:20   ` Bart Van Assche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox