Paul Moore 07feee8f81 netlabel: Cleanup the Smack/NetLabel code to fix incoming TCP connections
This patch cleans up a lot of the Smack network access control code.  The
largest changes are to fix the labeling of incoming TCP connections in a
manner similar to the recent SELinux changes which use the
security_inet_conn_request() hook to label the request_sock and let the label
move to the child socket via the normal network stack mechanisms.  In addition
to the incoming TCP connection fixes this patch also removes the smk_labled
field from the socket_smack struct as the minor optimization advantage was
outweighed by the difficulty in maintaining it's proper state.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: James Morris <jmorris@namei.org>
2009-03-28 15:01:37 +11:00
..
2009-03-21 19:06:50 -07:00
2009-03-17 13:10:52 -07:00
2009-01-04 17:29:21 -08:00
2009-03-21 13:36:17 -07:00
2009-03-21 19:19:16 -07:00
2009-03-03 21:39:40 -08:00
2009-03-21 13:36:17 -07:00
2009-03-21 13:41:09 -07:00
2009-02-26 23:43:35 -08:00
2005-04-16 15:20:36 -07:00