aboutsummaryrefslogtreecommitdiffstats
path: root/security/smack/smack_netfilter.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2015-04-04netfilter: Make nf_hookfn use nf_hook_state.David S. Miller1-6/+2
Pass the nf_hook_state all the way down into the hook functions themselves. Signed-off-by: David S. Miller <davem@davemloft.net>
2015-01-20Smack: secmark support for netfilterCasey Schaufler1-0/+96
Smack uses CIPSO to label internet packets and thus provide for access control on delivery of packets. The netfilter facility was not used to allow for Smack to work properly without netfilter configuration. Smack does not need netfilter, however there are cases where it would be handy. As a side effect, the labeling of local IPv4 packets can be optimized and the handling of local IPv6 packets is just all out better. The best part is that the netfilter tools use "contexts" that are just strings, and they work just as well for Smack as they do for SELinux. All of the conditional compilation for IPv6 was implemented by Rafal Krypa <r.krypa@samsung.com> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>