aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2009-08-05 12:34:55 +0000
committerJames Morris <[email protected]>2009-08-05 22:46:15 +0000
commitda34d4248bd2013ee64ce51e63ec0ebd1f32b46c (patch)
tree3934c6582b73fb3411799050ea5268daf2b2b814 /security/selinux/hooks.c
parentinclude/linux/cred.h: work around gcc-4.2.4 warning in get_cred() (diff)
downloadkernel-da34d4248bd2013ee64ce51e63ec0ebd1f32b46c.tar.gz
kernel-da34d4248bd2013ee64ce51e63ec0ebd1f32b46c.zip
security/smack: Use AF_INET for sin_family field
Elsewhere the sin_family field holds a value with a name of the form AF_..., so it seems reasonable to do so here as well. Also the values of PF_INET and AF_INET are the same. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ struct sockaddr_in sip; @@ ( sip.sin_family == - PF_INET + AF_INET | sip.sin_family != - PF_INET + AF_INET | sip.sin_family = - PF_INET + AF_INET ) // </smpl> Signed-off-by: Julia Lawall <[email protected]> Acked-by: Casey Schaufler <[email protected]> Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions