]> git.baikalelectronics.ru Git - kernel.git/commit
[NetLabel]: consolidate the struct socket/sock handling to just struct sock
authorPaul Moore <paul.moore@hp.com>
Fri, 8 Jun 2007 01:37:15 +0000 (18:37 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 8 Jun 2007 20:33:09 +0000 (13:33 -0700)
commit2ea7629f77d84a049e1c97b5626b48de815653d2
tree7a868d3a1948ab9e1aaf7b6e64e114e0f790370d
parentaaf8bfb5b619c39059c0198763f4c71effac99d1
[NetLabel]: consolidate the struct socket/sock handling to just struct sock

The current NetLabel code has some redundant APIs which allow both
"struct socket" and "struct sock" types to be used; this may have made
sense at some point but it is wasteful now.  Remove the functions that
operate on sockets and convert the callers.  Not only does this make
the code smaller and more consistent but it pushes the locking burden
up to the caller which can be more intelligent about the locks.  Also,
perform the same conversion (socket to sock) on the SELinux/NetLabel
glue code where it make sense.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/cipso_ipv4.h
include/net/netlabel.h
net/ipv4/cipso_ipv4.c
net/netlabel/netlabel_kapi.c
security/selinux/netlabel.c