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
..
2008-10-22 18:54:47 -05:00
2009-03-21 13:41:09 -07:00
2008-09-12 16:30:20 -07:00
2009-03-27 20:13:13 -04:00
2009-03-21 19:06:54 -07:00
2008-11-25 17:35:18 -08:00
2008-11-25 17:35:18 -08:00
2008-07-05 21:26:57 -07:00
2008-06-11 21:00:38 -07:00
2008-06-11 21:00:38 -07:00
2008-06-11 21:00:38 -07:00
2008-02-29 11:46:17 -08:00
2008-03-28 16:28:36 -07:00
2008-11-12 00:54:54 -08:00
2009-03-03 01:14:27 -08:00
2009-01-06 11:38:15 -07:00
2009-03-25 18:26:30 +01:00
2008-11-16 23:01:49 -08:00
2009-01-08 10:40:57 -08:00
2009-03-21 19:06:50 -07:00
2008-11-14 11:29:12 +11:00
2008-06-11 21:00:38 -07:00
2008-07-05 21:25:39 -07:00
2009-03-15 20:09:54 -07:00
2008-11-25 18:00:48 -08:00