Re: [PATCH] linux 2.9.10-rc1: Fix oops in unix_dgram_sendmsg whenusing SELinux and SOCK_SEQPACKET

From: Alan Cox
Date: Thu Nov 18 2004 - 21:19:56 EST


On Iau, 2004-11-18 at 17:25, James Morris wrote:
> 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.

Consider shutdown(). A sendmsg into shutdown must return the pending
ECONNRESET
first.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/