| To: | Ross Kendall Axe <ross.axe@xxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] linux 2.9.10-rc1: Fix oops in unix_dgram_sendmsg when using SELinux and SOCK_SEQPACKET |
| From: | Chris Wright <chrisw@xxxxxxxx> |
| Date: | Thu, 18 Nov 2004 23:19:43 -0800 |
| Cc: | Chris Wright <chrisw@xxxxxxxx>, James Morris <jmorris@xxxxxxxxxx>, netdev@xxxxxxxxxxx, Stephen Smalley <sds@xxxxxxxxxxxxxx>, lkml <linux-kernel@xxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx> |
| In-reply-to: | <419D6746.2020603@blueyonder.co.uk>; from ross.axe@blueyonder.co.uk on Fri, Nov 19, 2004 at 03:23:50AM +0000 |
| References: | <Xine.LNX.4.44.0411180257300.3144-100000@thoron.boston.redhat.com> <Xine.LNX.4.44.0411180305060.3192-100000@thoron.boston.redhat.com> <20041118084449.Z14339@build.pdx.osdl.net> <419D6746.2020603@blueyonder.co.uk> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.2.5i |
* Ross Kendall Axe (ross.axe@xxxxxxxxxxxxxxxx) wrote: > Taking this idea further, couldn't we split unix_dgram_sendmsg into 2 > functions, do_unix_dgram_sendmsg and do_unix_connectionless_sendmsg (and > similarly for unix_stream_sendmsg), then all we'd need is: > > <pseudocode> > static int do_unix_dgram_sendmsg(...); > static int do_unix_stream_sendmsg(...); > static int do_unix_connectionless_sendmsg(...); > static int do_unix_connectional_sendmsg(...); We could probably break it down to better functions and helpers, but I'm not sure that's quite the breakdown. That looks to me like an indirect way to pass a flag which is already encoded in the ops and sk_type. At anyrate, for 2.6.10 the changes should be small and obvious. Better refactoring should be left for 2.6.11. thanks, -chris -- Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net |
| Previous by Date: | Re: [PATCH] linux 2.9.10-rc1: Fix oops in unix_dgram_sendmsg when using SELinux and SOCK_SEQPACKET, James Morris |
|---|---|
| Next by Date: | Re: [PATCH] linux 2.9.10-rc1: Fix oops in unix_dgram_sendmsg when using SELinux and SOCK_SEQPACKET, Chris Wright |
| Previous by Thread: | Re: [PATCH] linux 2.9.10-rc1: Fix oops in unix_dgram_sendmsg when using SELinux and SOCK_SEQPACKET, Ross Kendall Axe |
| 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] |