<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/compat/linux/linux_socket.c, branch releng/7.3</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>Fix a bug in UNIX socket handling in the linux emulator which was</title>
<updated>2011-10-04T19:07:38+00:00</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2011-10-04T19:07:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=52bc579fa2e5845541940b0b16bf5dab6eff31f5'/>
<id>52bc579fa2e5845541940b0b16bf5dab6eff31f5</id>
<content type='text'>
exposed by the security fix in FreeBSD-SA-11:05.unix.

Approved by:	so (cperciva)
Approved by:	re (kib)
Security:	Related to FreeBSD-SA-11:05.unix, but not actually
		a security fix.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
exposed by the security fix in FreeBSD-SA-11:05.unix.

Approved by:	so (cperciva)
Approved by:	re (kib)
Security:	Related to FreeBSD-SA-11:05.unix, but not actually
		a security fix.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r192284:</title>
<updated>2009-06-17T21:52:39+00:00</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2009-06-17T21:52:39+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5faea3a7e76ccd6a0878b967065e8e021299c64a'/>
<id>5faea3a7e76ccd6a0878b967065e8e021299c64a</id>
<content type='text'>
Implement MSG_CMSG_CLOEXEC flag for linux_recvmsg().

Approved by:	kib (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement MSG_CMSG_CLOEXEC flag for linux_recvmsg().

Approved by:	kib (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r185442:</title>
<updated>2009-06-17T21:49:41+00:00</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2009-06-17T21:49:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d57c7139f35b28722d82ee9ff95d37fab73c5b4e'/>
<id>d57c7139f35b28722d82ee9ff95d37fab73c5b4e</id>
<content type='text'>
Make linux_sendmsg() and linux_recvmsg() work on linux32/amd64.
Change types used in the linux' struct msghdr and struct cmsghdr
definitions to the properly-sized architecture-specific types.
Move ancillary data handler from linux_sendit() to linux_sendmsg().

Approved by:	kib (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make linux_sendmsg() and linux_recvmsg() work on linux32/amd64.
Change types used in the linux' struct msghdr and struct cmsghdr
definitions to the properly-sized architecture-specific types.
Move ancillary data handler from linux_sendit() to linux_sendmsg().

Approved by:	kib (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r192206:</title>
<updated>2009-06-16T05:10:21+00:00</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2009-06-16T05:10:21+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=83211503bddce283c23f44f7d254b702ff0b9451'/>
<id>83211503bddce283c23f44f7d254b702ff0b9451</id>
<content type='text'>
Somewhere between 2.6.23 and 2.6.27, Linux added SOCK_CLOEXEC and
SOCK_NONBLOCK flags, that allow to save fcntl() calls.

Implement a variation of the socket() syscall which takes a flags
in addition to the type argument.

Approved by:	kib (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Somewhere between 2.6.23 and 2.6.27, Linux added SOCK_CLOEXEC and
SOCK_NONBLOCK flags, that allow to save fcntl() calls.

Implement a variation of the socket() syscall which takes a flags
in addition to the type argument.

Approved by:	kib (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r192205:</title>
<updated>2009-06-16T05:08:48+00:00</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2009-06-16T05:08:48+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a6d69399a0b52c1c43eac249585419778703691f'/>
<id>a6d69399a0b52c1c43eac249585419778703691f</id>
<content type='text'>
Return EINVAL in case when the incorrect or unsupported
type argument is specified.

Do not map type argument value as its Linux values are
identical to FreeBSD values.

Approved by:	kib (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Return EINVAL in case when the incorrect or unsupported
type argument is specified.

Do not map type argument value as its Linux values are
identical to FreeBSD values.

Approved by:	kib (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r192204:</title>
<updated>2009-06-16T05:07:34+00:00</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2009-06-16T05:07:34+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ee5c771452d9b552f598ec9f5262b85320d8882e'/>
<id>ee5c771452d9b552f598ec9f5262b85320d8882e</id>
<content type='text'>
Use the protocol family constants for the domain argument validation.
Return immediately when the socket() failed.

Approved by:	kib (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the protocol family constants for the domain argument validation.
Return immediately when the socket() failed.

Approved by:	kib (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r192203:</title>
<updated>2009-06-16T05:05:46+00:00</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2009-06-16T05:05:46+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=873d6f0212b77774f29dbec3dbbc5a3c301ce15b'/>
<id>873d6f0212b77774f29dbec3dbbc5a3c301ce15b</id>
<content type='text'>
Emulate SO_PEERCRED socket option.
Temporarily use 0 for pid member as the FreeBSD does not cache remote
UNIX domain socket peer pid.

PR:		kern/102956
Approved by:	kib (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Emulate SO_PEERCRED socket option.
Temporarily use 0 for pid member as the FreeBSD does not cache remote
UNIX domain socket peer pid.

PR:		kern/102956
Approved by:	kib (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r191875:</title>
<updated>2009-06-02T04:47:28+00:00</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2009-06-02T04:47:28+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4721ea3c8920be4ad6d72f33d9a28aebda808c20'/>
<id>4721ea3c8920be4ad6d72f33d9a28aebda808c20</id>
<content type='text'>
Return EAFNOSUPPORT instead of EINVAL in case when the incorrect or
unsupported domain argument to linux_socket() is specified.

Approved by:	kib (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Return EAFNOSUPPORT instead of EINVAL in case when the incorrect or
unsupported domain argument to linux_socket() is specified.

Approved by:	kib (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r191742,r191871:</title>
<updated>2009-06-02T04:44:38+00:00</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2009-06-02T04:44:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e887bb833802d24b2bfe29041689550d246eb2fc'/>
<id>e887bb833802d24b2bfe29041689550d246eb2fc</id>
<content type='text'>
Linux socketpair() call expects explicit specified protocol for
AF_LOCAL domain unlike FreeBSD which expects 0 in this case.

Return EAFNOSUPPORT in case when the incorrect domain argument
is specified.

Return EPROTONOSUPPORT instead of passing values that are not 0
to the BSD layer.

Approved by:	kib (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Linux socketpair() call expects explicit specified protocol for
AF_LOCAL domain unlike FreeBSD which expects 0 in this case.

Return EAFNOSUPPORT in case when the incorrect domain argument
is specified.

Return EPROTONOSUPPORT instead of passing values that are not 0
to the BSD layer.

Approved by:	kib (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge r192373 from HEAD to stable/7:</title>
<updated>2009-05-28T04:08:07+00:00</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2009-05-28T04:08:07+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=677f5ed0a2b8bc59aa1711c9b3ad81f65c03f610'/>
<id>677f5ed0a2b8bc59aa1711c9b3ad81f65c03f610</id>
<content type='text'>
Validate user-supplied arguments values.
Args argument is a pointer to the structure located in user space in
which the socketcall arguments are packed. The structure must be
copied to the kernel instead of direct dereferencing.

Approved by:	kib (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Validate user-supplied arguments values.
Args argument is a pointer to the structure located in user space in
which the socketcall arguments are packed. The structure must be
copied to the kernel instead of direct dereferencing.

Approved by:	kib (mentor)
</pre>
</div>
</content>
</entry>
</feed>
