History log of /freebsd-13.1/sys/compat/linux/linux_socket.h (Results 1 – 25 of 34)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0
# 3931de89 07-Feb-2021 Edward Tomasz Napierala <[email protected]>

linux: add support for SO_PEERGROUPS

The su(8) and sudo(8) from Ubuntu Bionic use it.

Sponsored By: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28165

(cherry picked

linux: add support for SO_PEERGROUPS

The su(8) and sudo(8) from Ubuntu Bionic use it.

Sponsored By: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28165

(cherry picked from commit cd84c82c6ad73c804b828bad9caec176e41ab79d)

show more ...


# e19cb5cc 17-Oct-2021 Edward Tomasz Napierala <[email protected]>

linux: recognize TCP_INFO and ratelimit the warning

This ratelimits the "unsupported getsockopt level 6 optname 11"
warnings that happen all the time when watching Netflix.

Sponsored By: EPSRC
Diff

linux: recognize TCP_INFO and ratelimit the warning

This ratelimits the "unsupported getsockopt level 6 optname 11"
warnings that happen all the time when watching Netflix.

Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D32454

(cherry picked from commit 99f563ed76f49c541e587a2f81bc43c62c86c0e5)

show more ...


# 47d6ee40 07-Feb-2021 Edward Tomasz Napierala <[email protected]>

linux: add support for SO_PEERSEC getsockopt

It returns "unconfined", like Linux without SELinux would.

Sponsored By: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2816

linux: add support for SO_PEERSEC getsockopt

It returns "unconfined", like Linux without SELinux would.

Sponsored By: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28164

(cherry picked from commit e44a78ce6f249f1eb7df94cb6953698953ebd88b)

show more ...


# 8ec6c4a3 08-Nov-2020 Alexander Leidinger <[email protected]>

- add more linux socket options (sorted by value)
- map those IPv4 / IPv6 socket options which exist in FreeBSD
+ most of them visually verified to have the same type/layout of arguments
+ not

- add more linux socket options (sorted by value)
- map those IPv4 / IPv6 socket options which exist in FreeBSD
+ most of them visually verified to have the same type/layout of arguments
+ not tested with linux programs to behave as intended
- be more human readable for known options which are not handled
- be more verbose for unhandled socket message flags we know about
- print the jail ID in linux_msg if run in a jail
- add possibility to print debug message about known missing parts only once
- add multiple levels of sysctl linux.debug:
1: print debug messages, tell about unimplemented stuff (only once)
2: like 1, but also print messages about implemented but not tested
stuff (only once)
3+: like 2, but no rate limiting of messages
- increase default linux debug level from 1 to 3

We are a lot more verbose in as we need to be (e.g. some of the IP socket
options which are the same, and share the same memory layout, and are
believed to work). The reason is that we have no good testsuite to test those
linux-bits. The LTP or other test suites like the python one, are not fully
up to the task we need. As such the excessive messages about emulated but not
tested socket options.

IMO any MFC (possible, but most probably not by me) should set the default
debug level to 1.

Discussed with: trasz

show more ...


Revision tags: release/12.2.0
# 4fe5361c 28-Jun-2020 Edward Tomasz Napierala <[email protected]>

Make linux(4) support SO_PROTOCOL. Running Python test suite
with python3.8 from Focal triggers those.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews

Make linux(4) support SO_PROTOCOL. Running Python test suite
with python3.8 from Focal triggers those.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25491

show more ...


# 4beacc3b 12-Jun-2020 Edward Tomasz Napierala <[email protected]>

Minor code cleanup; no functional changes.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25232


Revision tags: release/11.4.0
# 3bc69ad9 11-Jun-2020 Edward Tomasz Napierala <[email protected]>

Make linux(4) handle SO_REUSEPORT.

Reviewed by: emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25216


# c31a6a66 10-Jun-2020 Edward Tomasz Napierala <[email protected]>

Support SO_SNDBUFFORCE/SO_RCVBUFFORCE by aliasing them to the
standard SO_SNDBUF/SO_RCVBUF. Mostly cosmetics, to get rid
of the warning during 'apt upgrade'.

MFC after: 2 weeks
Sponsored by: The Fr

Support SO_SNDBUFFORCE/SO_RCVBUFFORCE by aliasing them to the
standard SO_SNDBUF/SO_RCVBUF. Mostly cosmetics, to get rid
of the warning during 'apt upgrade'.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25173

show more ...


# fc7510ae 05-Feb-2020 Ed Maste <[email protected]>

linuxulator: implement sendfile

Submitted by: Bora Özarslan <[email protected]>
Submitted by: Yang Wang <[email protected]>
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential

linuxulator: implement sendfile

Submitted by: Bora Özarslan <[email protected]>
Submitted by: Yang Wang <[email protected]>
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D19917

show more ...


# c2d47457 28-Jan-2020 Edward Tomasz Napierala <[email protected]>

Add TCP_CORK support to linux(4). This fixes one of the things Nginx
trips over.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23171


# da6d8ae6 28-Jan-2020 Edward Tomasz Napierala <[email protected]>

Add compat.linux.ignore_ip_recverr sysctl. This is a workaround
for missing IP_RECVERR setsockopt(2) support. Without it, DNS
resolution is broken for glibc >= 2.30 (glibc BZ #24047).

From the user

Add compat.linux.ignore_ip_recverr sysctl. This is a workaround
for missing IP_RECVERR setsockopt(2) support. Without it, DNS
resolution is broken for glibc >= 2.30 (glibc BZ #24047).

From the user point of view this fixes "yum update" on recent
CentOS 8.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23234

show more ...


Revision tags: release/12.1.0, release/11.3.0
# d5368bf3 13-May-2019 Dmitry Chagin <[email protected]>

Our bsd_to_linux_sockaddr() and linux_to_bsd_sockaddr() functions
alter the userspace sockaddr to convert the format between linux and BSD versions.
That's the minimum 3 of copyin/copyout operations

Our bsd_to_linux_sockaddr() and linux_to_bsd_sockaddr() functions
alter the userspace sockaddr to convert the format between linux and BSD versions.
That's the minimum 3 of copyin/copyout operations for one syscall.

Also some syscall uses linux_sa_put() and linux_getsockaddr() when load
sockaddr to userspace or from userspace accordingly.

To avoid this chaos, especially converting sockaddr in the userspace,
rewrite these 4 functions to convert sockaddr only in kernel and leave
only 2 of this functions.

Also in order to reduce duplication between MD parts of the Linuxulator put
struct sockaddr conversion functions that are MI out into linux_common module.

PR: 232920
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20157

show more ...


Revision tags: release/12.0.0, release/11.2.0
# 132f90c6 05-Feb-2018 Ed Maste <[email protected]>

Linuxolator whitespace cleanup

A version of each of the MD files by necessity exists for each CPU
architecture supported by the Linuxolator. Clean these up so that new
architectures do not inherit

Linuxolator whitespace cleanup

A version of each of the MD files by necessity exists for each CPU
architecture supported by the Linuxolator. Clean these up so that new
architectures do not inherit whitespace issues.

Clean up shared Linuxolator files while here.

Sponsored by: Turing Robotic Industries Inc.

show more ...


# 7f2d13d6 27-Nov-2017 Pedro F. Giffuni <[email protected]>

sys/compat: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - er

sys/compat: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

show more ...


Revision tags: release/10.4.0, release/11.1.0
# 85712939 18-Mar-2017 Dmitry Chagin <[email protected]>

To reduce code duplication move socket defines to the MI path.

MFC after: 1 week


# c1c8a121 04-Mar-2017 Dmitry Chagin <[email protected]>

Hide Linux socketcall constants under corresponding #ifdef since
they are used only in i386 Linuxulator.

MFC after: 1 week


# 56fba8e6 18-Feb-2017 Dmitry Chagin <[email protected]>

Finich r313684.

Convert linux_recv(), linux_send() and linux_accept() system call arguments
to the register_t type too.

PR: 217161
MFC after: 3 days
xMFC with: r313284,r313285,r313684


# 8b756d40 05-Feb-2017 Dmitry Chagin <[email protected]>

Update syscall.master to 4.10-rc6. Also fix comments, a typo,
and wrong numbering for a few unimplemented syscalls.

For 32-bit Linuxulator, socketcall() syscall was historically
the entry point for

Update syscall.master to 4.10-rc6. Also fix comments, a typo,
and wrong numbering for a few unimplemented syscalls.

For 32-bit Linuxulator, socketcall() syscall was historically
the entry point for the sockets API. Starting in Linux 4.3, direct
syscalls are provided for the sockets API. Enable it.

The initial version of patch was provided by trasz@ and extended by me.

Submitted by: trasz
MFC after: 2 week
Differential Revision: https://reviews.freebsd.org/D9381

show more ...


Revision tags: release/11.0.1, release/11.0.0
# 1ce4275d 30-Apr-2016 Pedro F. Giffuni <[email protected]>

sys/compat/linux*: spelling fixes.

Mostly on comments but there are some user-visible messages as well.

MFC after: 2 weeks


Revision tags: release/10.3.0
# 86a9058b 09-Mar-2016 Andrey V. Elsukov <[email protected]>

Add support for IPPROTO_IPV6 socket layer for getsockopt/setsockopt calls.
Also add mapping for several options from RFC 3493 and 3542.

Reviewed by: dchagin
Tested by: Joe Love <joe at getsomwhere d

Add support for IPPROTO_IPV6 socket layer for getsockopt/setsockopt calls.
Also add mapping for several options from RFC 3493 and 3542.

Reviewed by: dchagin
Tested by: Joe Love <joe at getsomwhere dot net>
MFC after: 2 weeks

show more ...


Revision tags: release/10.2.0
# bbf392d5 24-May-2015 Dmitry Chagin <[email protected]>

Convert SCM_TIMESTAMP in recvmsg().


# e1ff74c0 24-May-2015 Dmitry Chagin <[email protected]>

Implement recvmmsg() and sendmmsg() system calls.


# b7aaa9fd 24-May-2015 Dmitry Chagin <[email protected]>

Reduce duplication between MD Linux code by moving msg related
struct definitions out into the compat/linux/linux_socket.h


# a12b9b3d 24-May-2015 Dmitry Chagin <[email protected]>

64-bit paltforms, like x86_64, do not use multiplexing on
socketcall system calls.

Differential Revision: https://reviews.freebsd.org/D1065
Reviewed by: trasz


Revision tags: release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0
# d825ce0a 29-Jan-2013 John Baldwin <[email protected]>

Reduce duplication between i386/linux/linux.h and amd64/linux32/linux.h
by moving bits that are MI out into headers in compat/linux.

Reviewed by: Chagin Dmitry dmitry | gmail
MFC after: 2 weeks


12