]> git.hungrycats.org Git - linux/commit
[PATCH] selinux: improve skb audit logging
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 02:38:40 +0000 (18:38 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 02:38:40 +0000 (18:38 -0800)
commite0e9c58e1be088a22061e2269afd58a563e6cb2f
tree1a9926a4b3ca71d431bc8a687979a6da3316022b
parentbef7d80318c3ba9ca78384c8463b0fd236b55a1c
[PATCH] selinux: improve skb audit logging

From: James Morris <jmorris@redhat.com>

This patch is a rework of the skb audit logging code in SELinux.  Rather
than relying on skb header pointers, it parses the skb for specific
protocols (TCP and UDP for IPv4 at this stage).  This is safer for the case
of locally generated raw packets, which can be malformed.  It also now
takes fragmented skbs into account.  The new code allows the caller to
parse the skb so that parsed information can be more readily re-used.
security/selinux/avc.c
security/selinux/hooks.c
security/selinux/include/avc.h