aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorChuck Lever <[email protected]>2008-10-23 04:50:35 +0000
committerJ. Bruce Fields <[email protected]>2008-10-30 21:19:30 +0000
commitd7dc61d0a70371b1c6557ea8ffbc60fff94c8168 (patch)
tree78cc625fbdc4a0ff643ccebe6938ff1036eab00b /security/selinux/hooks.c
parentnfsd: fix failure to set eof in readdir in some situations (diff)
downloadkernel-d7dc61d0a70371b1c6557ea8ffbc60fff94c8168.tar.gz
kernel-d7dc61d0a70371b1c6557ea8ffbc60fff94c8168.zip
NLM: Set address family before calling nlm_host_rebooted()
The nlm_host_rebooted() function uses nlm_cmp_addr() to find an nsm_handle that matches the rebooted peer. In order for this to work, the passed-in address must have a proper address family. This fixes a post-2.6.28 regression introduced by commit 781b61a6, which added AF_INET6 support to nlm_cmp_addr(). Before that commit, nlm_cmp_addr() didn't care about the address family; it compared only the sin_addr.s_addr field for equality. Signed-off-by: Chuck Lever <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions