diff options
| author | James Morris <jmorris@redhat.com> | 2004-11-17 22:26:01 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.davemloft.net> | 2004-11-17 22:26:01 -0800 |
| commit | bfa523d1df4634ac74e412d0dc3afb9620071d00 (patch) | |
| tree | 627b11514477ab88b467dd8e569405279d36882e /lib | |
| parent | 0cfbca35d262d806dd83f3198bf0989674bbcdc9 (diff) | |
[AF_UNIX]: Fix SELinux crashes with SOCK_SEQPACKET
1) Don't call security_unix_may_send() hook during sendmsg() for
SOCK_SEQPACKET, and ensure that sendmsg() can only be called on a
connected socket so as not to bypass the security_unix_stream_connect()
hook.
2) Return -EINVAL if sendto() is called on SOCK_SEQPACKET with an address
supplied.
Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
