zoneinfo: also install tzdata.zi and version
Build and install the shrunk version of the time zone database required
by libc++ 19 std::chrono::current_zone (etc). While here, also install
the tzdata 'version' file to align more closely with other vendors.
PR: 282377
Reviewed by: dim, emaste, imp
Differential Revision: https://reviews.freebsd.org/D49577
(cherry picked from commit 91506dba7f2eb147eeb55ec30640bc11755a1e8e)
nfsv4: Add support to NFSv4 for named attributes
NFSv4 supports a feature called named attributes, that are
essentially Solaris style extended attributes.
Commits starting with 2ec2ba7e232d added Solaris style extended
attribute support.
This patch uses the Solaris style extended attribute
support to provide support for NFSv4.
Since nfsv4_loadattr() needed an additional argument,
many file are affected, although many in a trivial way.
For the NFSv4 server to support named attributes, ZFS must
be patched and only ZFS file systems support these Solaris
style extended attributes.
libcrypto: move engines and modules to openssl-lib
currently, some OpenSSL-related files end up in the utilities package:
/usr/lib/engines-3/capi.so
/usr/lib/engines-3/devcrypto.so
/usr/lib/engines-3/loader_attic.so
/usr/lib/engines-3/padlock.so
/usr/lib/ossl-modules/legacy.so
since these are part of OpenSSL and are not useful without it, move them
to the openssl-lib package.
Reviewed by: manu, des, emaste
Approved by: des (mentor)
Differential Revision: https://reviews.freebsd.org/D50144
traceroute: add tests
add some basic tests for traceroute. this covers most of the flags we
can easily test; in some cases we use tcpdump to ensure the correct
packets are actually being sent.
to run the tests, we create three jails: one for the source host, one
for the destination host, and one to route packets betweem them. this
ensures we're actually testing traceroute across a routed network and
not just sending probe packets to a directly connected host.
no tests for traceroute6 are in this commit since the traceroute6 merge
into traceroute is in progress elsewhere.
Reviewed by: des, adrian
Approved by: des (mentor)
Differential Revision: https://reviews.freebsd.org/D49838
bridge: allow IP addresses on members to be disabled
add a new sysctl, net.link.bridge.member_ifaddrs, which defaults to 1.
if it is set to 1, bridge behaviour is unchanged.
if it is set to 0:
- an interface which has AF_INET6 or AF_INET addresses assigned cannot
be added to a bridge.
- an interface in a bridge cannot have an AF_INET6 or AF_INET address
assigned to it.
- the bridge will no longer consider the lladdrs on bridge members to be
local addresses, i.e. frames sent to member lladdrs will not be
processed by the host.
update bridge.4 to document this behaviour, as well as the existing
recommendation that IP addresses should not be configured on bridge
members anyway, even if it currently partially works.
[8 lines not shown]
sctp: compute address flags only for IPv6 addresses
Only call sctp_gather_internal_ifa_flags() for IPv6 addresses and
also compile this code only, when IPv6 is supported.
This fixes the compilation of IPv4 only kernels.
Reported by: bz@
Fixes: 6ab4b0c0df57 ("sctp: initilize local address flags correctly")
MFC after: 3 days
unix: new implementation of unix/stream & unix/seqpacket
[this is an updated version of d80a97def9a1, that had been reverted]
Provide protocol specific pr_sosend and pr_soreceive for PF_UNIX
SOCK_STREAM sockets and implement SOCK_SEQPACKET sockets as an extension
of SOCK_STREAM. The change meets three goals: get rid of unix(4) specific
stuff in the generic socket code, provide a faster and robust unix/stream
sockets and bring unix/seqpacket much closer to specification. Highlights
follow:
- The send buffer now is truly bypassed. Previously it was always empty,
but the send(2) still needed to acquire its lock and do a variety of
tricks to be woken up in the right time while sleeping on it. Now the
only two things we care about in the send buffer is the I/O sx(9) lock
that serializes operations and value of so_snd.sb_hiwat, which we can read
without obtaining a lock. The sleep of a send(2) happens on the mutex of
the receive buffer of the peer. A bulk send/recv of data with large
socket buffers will make both syscalls just bounce between owning the
[29 lines not shown]
strings: Unconditionally install ELF Tool Chain's strings
llvm-strings may consume a large amount of memory while reading the
input file before producing any output.
ELF Tool Chain's strings is small and lightweight, and we always install
strings regardless of WITH_/WITHOUT_TOOLCHAIN settings (as it is useful
in many contexts). Return to always installing ELF Tool Chain's version
of strings.
This reverts commit 81fa5c4a828bec9f1ead280c59c31bd423e6eeea.
This reverts commit 7ca3db1999cd967f9d6d7b259aa7af54aae14a5f.
PR: 286605
Reported by: olivier
Reviewed by: olivier, brooks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50084
ObsoleteFiles.inc: Remove audio(8) files after rename to sndctl(8)
Reported by: eduardo
Reviewed by: kevans
Fixes: 9a37f1024ceb ("Rename audio(8) to sndctl(8)")
Sponsored by: The FreeBSD Foundation
Remove leftover blank line from pkg key file
$FreeBSD$ removal (commit d0b2dbfa0ecf) left a blank line at the
beginning of this file. Remove it now.
Sponsored by: The FreeBSD Foundation
ghpr-push: Better auotmated closing message
Make it clear this is an automated message and that the change isn't on
the mirror yet, but will be soon. Also, be polite and thank the
contributor for this submission, because the project really does
appreciate it.
Reviewed by: emaste
Sponsored by: Netflix
libc tests: add tests for link_addr(3) and link_ntoa(3)
for now, since link_addr() has no way to indicate an error, these are
only positive tests which check the outcome of valid inputs.
Reviewed by: ngie, des, adrian
Approved by: des (mentor)
Differential Revision: https://reviews.freebsd.org/D50062
UPDATING: Strengthen recommendations
Strengthen recommendations for ports_modules by adding a separate note.
Use the unused [2] to add a note about creating backups.
MFC after: 3 days
Reviewed by: brooks, mhorne
Approved by: mhorne (mentor)
Differential Revision: https://reviews.freebsd.org/D50126
src.conf.5: Correct LLVM_BINUTILS comment about strings(1)
Reported by: olivier
Fixes: 81fa5c4a828b ("llvm-strings: Install as strings when WITH_LLVM_BINUTILS=YES")
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 7ca3db1999cd967f9d6d7b259aa7af54aae14a5f)
shutdown(8): refuse to run if /var/run/noshutdown is present
Reviewed by: bapt, kevans, olce
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D50166
pkg: suppress error on unknown options
pkg(7) does not understand all the options that pkg(8) understands and
should never log errors about unknown options that it will pass on to
pkg(8) without touching.
PR: 286510
Reviewed by: bapt
Fixes: be61deae0aa2 ("pkg: clarify argument parsing")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50163
puc(4): Tighten expression of supported modules
Since we have a huge number of supported device here, try to consolodate
entries that make sense and do other formatting tweaks to reduce the raw
number of lines needed to express the supported models. Also, the
oxford semi blur the line between chip support and board support, so
simplify that entry. Simplify the SIIG stuff somewhat (while the
pucdata has per-chip entries, we don't need that here since we support
virtually all SIIG cards). Place several entries on the same line where
(I think) it makes sense.
This could likely stand to be put into alphabetical order.
Sponsored by: Netflix
rpc.statd: move to nfs package
rpc.statd is not technically specific to NFS, but NFS is the only thing
which has ever actually used it, so this is the most appropriate place
to put it.
Reviewed by: rmacklem, des, bapt, emaste
Approved by: des (mentor)
Differential Revision: https://reviews.freebsd.org/D50162
rc.d: move some rc scripts to their packages
several rc.d scripts are installed by the FreeBSD-rc package, but they
don't work without their respective packages installed. move these rc
scripts into the appropriate packages so they're installed along with
the services they start.
this should be undisruptive to users since the scripts don't work
without those packages installed anyway. (for this reason, do not move
the Kerberos scripts, because the MIT Kerberos port uses the base rc.d
scripts.)
PR: 282324
Reviewed by: manu, des, bapt
Approved by: des (mentor)
Differential Revision: https://reviews.freebsd.org/D50137
add packages for libufs, libzfs
currently FreeBSD-utilities depends on both FreeBSD-ufs and FreeBSD-zfs.
this is not desirable, because those are both relatively large packages
and the user may want to remove one or the other – or perhaps both, e.g.
in a jail or embedded system.
the reason for this dependency is that fstyp(8), which is in
FreeBSD-utilities, links both libufs and libzfs. FreeBSD-utilities is
the correct place for fstyp, so we don't want to move that.
instead, add two new packages: libufs contains libufs, and libzfs
contains libzfs plus the ZFS libraries it depends on: libavl, libnvpair,
libspl, libtpool, libumem, libuutil, libzfs_core and libzutil.
with this change, it is possible to remove FreeBSD-ufs and/or
FreeBSD-zfs while leaving FreeBSD-libufs, FreeBSD-libzfs and
FreeBSD-utilities installed.
[3 lines not shown]
tests: move some files to the tests package
some test support libraries had escaped confinement and were found
wandering around the utilities package:
/usr/tests/lib/csu/dynamiclib/libh_csu.so
/usr/tests/lib/libthr/dlopen/h_pthread_dlopen.so
/usr/tests/lib/libthr/dlopen/h_pthread_dlopen.so.1
/usr/tests/sys/vm/stack/libsoxstack.so
these aren't built using bsd.test.mk, so they don't get the default
PACKAGE=tests option; set this by hand in their Makefiles to put them
back where they belong.
Reviewed by: manu, des, emaste
Approved by: des (mentor)
Differential Revision: https://reviews.freebsd.org/D50147
tftp-proxy: move to the pf package
tftp-proxy is part of pf and isn't useful without it, so move it to the
pf package (where its friend ftp-proxy already lives).
Reviewed by: manu, kp, des, emaste
Approved by: des (mentor)
Differential Revision: https://reviews.freebsd.org/D50145