lkml.org 
[lkml]   [2004]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] linux 2.9.10-rc1: Fix oops in unix_dgram_sendmsg when using SELinux and SOCK_SEQPACKET
On Thu, 18 Nov 2004, Chris Wright wrote:

> > (Also now ignores any supplied address per
> > http://www.opengroup.org/onlinepubs/009695399/functions/sendto.html)
>
> Nitpick, but I missed where it said ignore the address. And it seems
> counter intuitive to provide address, only to have it ignored and
> delivered elsewhere.

For sendto():
"If the socket is connection-mode, dest_addr shall be ignored."

For sendmsg():
"If the socket is connection-mode, the destination address in msghdr
shall be ignored."

I agree that it's counter intuitive (and surely an application bug), but
some feedback I've had suggests we follow the spec.


- James
--
James Morris
<jmorris@redhat.com>


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

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.062 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site