scm: Only support SCM_RIGHTS on unix domain sockets.
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 28 Feb 2010 01:20:36 +0000 (01:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Mar 2010 02:22:02 +0000 (18:22 -0800)
commit76dadd76c265a0cdb5a76aa4eef03fcc9639b388
tree78ed0e6da0aa99d4c04c02d9003aadbc44f091d8
parent39286fa41a8b2c6a9c1f656a7b3c3efca95bc1b9
scm: Only support SCM_RIGHTS on unix domain sockets.

We use scm_send and scm_recv on both unix domain and
netlink sockets, but only unix domain sockets support
everything required for file descriptor passing,
so error if someone attempts to pass file descriptors
over netlink sockets.

Cc: stable@kernel.org
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/scm.c