| To: | James Morris <jmorris@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] linux 2.9.10-rc1: Fix oops in unix_dgram_sendmsg when using SELinux and SOCK_SEQPACKET |
| From: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
| Date: | Thu, 18 Nov 2004 14:34:51 -0800 |
| Cc: | chrisw@xxxxxxxx, ross.axe@xxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, sds@xxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx |
| In-reply-to: | <Xine.LNX.4.44.0411181219590.5236-100000@thoron.boston.redhat.com> |
| References: | <Xine.LNX.4.44.0411181158110.5096-100000@thoron.boston.redhat.com> <Xine.LNX.4.44.0411181219590.5236-100000@thoron.boston.redhat.com> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Thu, 18 Nov 2004 12:25:21 -0500 (EST) James Morris <jmorris@xxxxxxxxxx> wrote: > Updated patch below (with Chris Wright's wrapper idea). > > This now fixes both issues. > > 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. > > Please review and apply if ok. > > > Signed-off-by: James Morris <jmorris@xxxxxxxxxx> Looks good, applied thanks James. |
| Previous by Date: | Re: [PATCH] random: remove TCP MD4 code if !CONFIG_INET, David S. Miller |
|---|---|
| Next by Date: | Re: [PATCH] MII bus API for PHY devices, Benjamin Herrenschmidt |
| Previous by Thread: | Re: [PATCH] linux 2.9.10-rc1: Fix oops in unix_dgram_sendmsg when using SELinux and SOCK_SEQPACKET, Alan Cox |
| Next by Thread: | Re: [PATCH] linux 2.9.10-rc1: Fix oops in unix_dgram_sendmsg when using SELinux and SOCK_SEQPACKET, Ross Kendall Axe |
| Indexes: | [Date] [Thread] [Top] [All Lists] |