Regression in the 2.6.12 kernel errata?

Sam Varshavchik mrsam at courier-mta.com
Tue Aug 2 00:04:29 UTC 2005


Miloslav Trmac writes:


>> connect(3, {sa_family=AF_INET, sin_port=htons(1080),
>> sin_addr=inet_addr("192.168.0.5")}, 28) = -1 EINVAL (Invalid argument)
> Note that in the first case the third argument to connect is 16
> (sizeof struct sockaddr_in), but in the second case it is 28 (sizeof
> struct sockaddr_in6).  While the base kernel allows larger sizes
> than (sizeof struct sockaddr_in), SELinux performs additional checks
> which prohibit this, see e.g. #158234.

Aha.

>> Can anyone tell me why this is _not_ a kernel bug?
> It does break existing applications, but the definite specification is
> probably SUSv3, which seems to allow this behavior.
> 	Mirek

Well, sockaddr_in already has some padding right off the bat…

But, mystery solved anyway…

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20050801/652f95a5/attachment.sig>


More information about the fedora-devel-list mailing list