sockaddr patch
Subsystems (2)
PATCH 2/14 sockaddr patch
From: Steve Grubb <[email protected]>
Date: Thu Mar 30 12:20:22 2006 -0500
Quoted 4 lines · John D. Ramsdell
I noticed that a socketcall(bind) and socketcall(connect) event contain a record of type=SOCKADDR, but I cannot see one for a system call event associated with socketcall(accept). Recording the sockaddr of an accepted socket is important for cross platform information flow analys
Thanks for pointing this out. The following patch should address this.
Signed-off-by Steve Grubb <[email protected]>
Signed-off-by Al Viro <[email protected]>
---
net/socket.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
d6fe3945b42d09a1eca7ad180a1646e585b8594f
net/socket.c +2 -0
@@ -267,6 +267,8 @@ int move_addr_to_user(void *kaddr, int kreturn -EINVAL ;if (len) { +if (audit_sockaddr (klen, kaddr)) +return -ENOMEM ;if (copy_to_user (uaddr,kaddr,len))return -EFAULT ; }
Signature · 1 line
1.3.0.g0080f