net: pass kern to net_proto_family create function
authorEric Paris <eparis@redhat.com>
Fri, 6 Nov 2009 06:18:14 +0000 (22:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Nov 2009 06:18:14 +0000 (22:18 -0800)
commit3f378b684453f2a028eda463ce383370545d9cc9
treedc50d087e137c6d173e25ae10ecd0f10823eca7a
parent13f18aa05f5abe135f47b6417537ae2b2fedc18c
net: pass kern to net_proto_family create function

The generic __sock_create function has a kern argument which allows the
security system to make decisions based on if a socket is being created by
the kernel or by userspace.  This patch passes that flag to the
net_proto_family specific create function, so it can do the same thing.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
37 files changed:
drivers/isdn/mISDN/socket.c
drivers/net/pppox.c
include/linux/net.h
net/appletalk/ddp.c
net/atm/pvc.c
net/atm/svc.c
net/ax25/af_ax25.c
net/bluetooth/af_bluetooth.c
net/bluetooth/bnep/sock.c
net/bluetooth/cmtp/sock.c
net/bluetooth/hci_sock.c
net/bluetooth/hidp/sock.c
net/bluetooth/l2cap.c
net/bluetooth/rfcomm/sock.c
net/bluetooth/sco.c
net/can/af_can.c
net/decnet/af_decnet.c
net/econet/af_econet.c
net/ieee802154/af_ieee802154.c
net/ipv4/af_inet.c
net/ipv6/af_inet6.c
net/ipx/af_ipx.c
net/irda/af_irda.c
net/iucv/af_iucv.c
net/key/af_key.c
net/llc/af_llc.c
net/netlink/af_netlink.c
net/netrom/af_netrom.c
net/packet/af_packet.c
net/phonet/af_phonet.c
net/rds/af_rds.c
net/rose/af_rose.c
net/rxrpc/af_rxrpc.c
net/socket.c
net/tipc/socket.c
net/unix/af_unix.c
net/x25/af_x25.c