FreeBSD/src 849a51alib/libsys pdfork.2

pdfork.2: grammar

Submitted by:   des
MFC after:      1 week
DeltaFile
+3-1lib/libsys/pdfork.2
+3-11 files

FreeBSD/src 134a4c7gnu COPYING.LIB COPYING, gnu/lib/tests Makefile.depend

Retire the GNU subtree

With GNU diff and cdialog gone, this is now an empty shell.

Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55425
DeltaFile
+0-481gnu/COPYING.LIB
+0-339gnu/COPYING
+0-10gnu/tests/Makefile.depend
+0-10gnu/usr.bin/tests/Makefile.depend
+0-10gnu/Makefile
+0-10gnu/lib/tests/Makefile.depend
+0-86014 files not shown
+11-90520 files

FreeBSD/src af202a5contrib/dialog configure aclocal.m4

Retire dialog

This is the last remaining piece of GPL software in the base system.
The installer transitioned to bsddialog four years ago, and the last
remaining dialog consumer, dpv, was turned off more than two years ago.
Retire dpv, libdpv, libfigpar (used only by dpv), and dialog itself.

Reviewed by:    dteske
Differential Revision:  https://reviews.freebsd.org/D55424
DeltaFile
+0-27,284contrib/dialog/configure
+0-7,150contrib/dialog/aclocal.m4
+0-3,823contrib/dialog/dialog.3
+0-3,047contrib/dialog/util.c
+0-2,461contrib/dialog/CHANGES
+0-2,144contrib/dialog/dialog.c
+0-45,909384 files not shown
+28-95,078390 files

FreeBSD/src aad298ccontrib/openresolv resolvconf.in

openresolv: Trim leading dot from domain name

Merge upstream change d9f6b1a2d292

PR:             296305
MFC after:      1 week

(cherry picked from commit 4b26ea54713941243b3a0d4263bebbf192ee68c7)
DeltaFile
+3-0contrib/openresolv/resolvconf.in
+3-01 files

FreeBSD/src ec02e4alibexec/rc rc.firewall

rc.firewall: Use checkyesno for boolean variables

Use the checkyesno function from rc.subr instead of hardcoded checks for
boolean variables.  Also drop an incorrect comment about the default
logamount value; the actual default is zero (unlimited).

MFC after:      1 week
Reviewed by:    kevans, allanjude
Differential Revision:  https://reviews.freebsd.org/D57678

(cherry picked from commit a3c077c1ccbe57ffad6317879bc1e49291892414)
DeltaFile
+19-34libexec/rc/rc.firewall
+19-341 files

FreeBSD/src 973d1f2usr.sbin/unbound/setup local-unbound-setup.sh

local-unbound-setup: Support IPv6-only systems

* In the server configuration, disable protocols not supported by the
  kernel.

* In resolv.conf, instead of only using 127.0.0.1, use either 127.0.0.1,
  ::1, or both depending on which protocols the kernel supports.

MFC after:      1 week
Reviewed by:    jlduran
Differential Revision:  https://reviews.freebsd.org/D57840

(cherry picked from commit f0a861efbafeb81428d5e8c23dac9da73fe14007)
DeltaFile
+40-10usr.sbin/unbound/setup/local-unbound-setup.sh
+40-101 files

FreeBSD/src 10075balibexec/rc rc.firewall rc.conf

rc.firewall: Support on-disk lists

For firewall_allowservices and firewall_trusted, if an element of the
list looks like an absolute path, read the file, skipping comments and
blank lines, and treat the first word on each line as an address or
subnet to be added to the list.

We should probably be using tables instead, but this is still an
improvement over the status quo ante.

MFC after:      1 week
Relnotes:       yes
Reviewed by:    allanjude
Differential Revision:  https://reviews.freebsd.org/D57679

(cherry picked from commit a71abf38e2b46c02965f3224c62bb6ef1971996e)
DeltaFile
+32-11libexec/rc/rc.firewall
+7-4libexec/rc/rc.conf
+39-152 files

FreeBSD/src 546b456libexec/rc/rc.d tmp

rc.d/tmp: Fix dupe mount check

Before mounting a new mfs on /tmp, we check if there already is one.
However, the dupe check only takes /dev/md[0-9]* into account, while the
default mfs type these days is tmpfs.  Rewrite it to look for tmpfs as
well.

Note that the dupe check is redundant in the tmpmfs=auto case, but we
leave moving it for later.

PR:             182035
MFC after:      1 week
Reviewed by:    kevans, allanjude
Differential Revision:  https://reviews.freebsd.org/D57682

(cherry picked from commit 45efa4e61623e3eeee7fd0a3f4436616e24c8e98)
DeltaFile
+9-4libexec/rc/rc.d/tmp
+9-41 files

FreeBSD/src 25a3e50libexec/rc/rc.d ddb

rc.d/ddb: Really silently exit

The comment says “silently exit if ddb is not enabled”, but we'd exit
with an error message.

Note that I switched the sysctl variable used to test for the presence
of ddb from debug.ddb.scripting.scripts to d.d.s.script, which has a
smaller value if set.

While here, drop a pointless fork-exec, and use ${SYSCTL_N} for
consistency.

PR:             177217
MFC after:      1 week
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D57686

(cherry picked from commit b0d3a2889a1b8e4b73ad1f396884224e1442b214)
DeltaFile
+2-2libexec/rc/rc.d/ddb
+2-21 files

FreeBSD/src ba40331usr.sbin/unbound/setup local-unbound-setup.sh

local-unbound-setup: Support IPv6-only systems

* In the server configuration, disable protocols not supported by the
  kernel.

* In resolv.conf, instead of only using 127.0.0.1, use either 127.0.0.1,
  ::1, or both depending on which protocols the kernel supports.

MFC after:      1 week
Reviewed by:    jlduran
Differential Revision:  https://reviews.freebsd.org/D57840

(cherry picked from commit f0a861efbafeb81428d5e8c23dac9da73fe14007)
DeltaFile
+40-10usr.sbin/unbound/setup/local-unbound-setup.sh
+40-101 files

FreeBSD/src 7d350f5libexec/rc/rc.d tmp

rc.d/tmp: Fix dupe mount check

Before mounting a new mfs on /tmp, we check if there already is one.
However, the dupe check only takes /dev/md[0-9]* into account, while the
default mfs type these days is tmpfs.  Rewrite it to look for tmpfs as
well.

Note that the dupe check is redundant in the tmpmfs=auto case, but we
leave moving it for later.

PR:             182035
MFC after:      1 week
Reviewed by:    kevans, allanjude
Differential Revision:  https://reviews.freebsd.org/D57682

(cherry picked from commit 45efa4e61623e3eeee7fd0a3f4436616e24c8e98)
DeltaFile
+9-4libexec/rc/rc.d/tmp
+9-41 files

FreeBSD/src fcbe16dlibexec/rc/rc.d ddb

rc.d/ddb: Really silently exit

The comment says “silently exit if ddb is not enabled”, but we'd exit
with an error message.

Note that I switched the sysctl variable used to test for the presence
of ddb from debug.ddb.scripting.scripts to d.d.s.script, which has a
smaller value if set.

While here, drop a pointless fork-exec, and use ${SYSCTL_N} for
consistency.

PR:             177217
MFC after:      1 week
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D57686

(cherry picked from commit b0d3a2889a1b8e4b73ad1f396884224e1442b214)
DeltaFile
+2-2libexec/rc/rc.d/ddb
+2-21 files

FreeBSD/src 4fff1e9contrib/openresolv resolvconf.in

openresolv: Trim leading dot from domain name

Merge upstream change d9f6b1a2d292

PR:             296305
MFC after:      1 week

(cherry picked from commit 4b26ea54713941243b3a0d4263bebbf192ee68c7)
DeltaFile
+3-0contrib/openresolv/resolvconf.in
+3-01 files

FreeBSD/src 90244a3libexec/rc rc.firewall

rc.firewall: Use checkyesno for boolean variables

Use the checkyesno function from rc.subr instead of hardcoded checks for
boolean variables.  Also drop an incorrect comment about the default
logamount value; the actual default is zero (unlimited).

MFC after:      1 week
Reviewed by:    kevans, allanjude
Differential Revision:  https://reviews.freebsd.org/D57678

(cherry picked from commit a3c077c1ccbe57ffad6317879bc1e49291892414)
DeltaFile
+19-34libexec/rc/rc.firewall
+19-341 files

FreeBSD/src 3aec740libexec/rc rc.firewall rc.conf

rc.firewall: Support on-disk lists

For firewall_allowservices and firewall_trusted, if an element of the
list looks like an absolute path, read the file, skipping comments and
blank lines, and treat the first word on each line as an address or
subnet to be added to the list.

We should probably be using tables instead, but this is still an
improvement over the status quo ante.

MFC after:      1 week
Relnotes:       yes
Reviewed by:    allanjude
Differential Revision:  https://reviews.freebsd.org/D57679

(cherry picked from commit a71abf38e2b46c02965f3224c62bb6ef1971996e)
DeltaFile
+32-11libexec/rc/rc.firewall
+7-4libexec/rc/rc.conf
+39-152 files

FreeBSD/src 266022bcontrib/openresolv resolvconf.in resolvconf.8.in

contrib/openresolv: MFV openresolv 3.17.4

Reviewed by:    pfg
Approved by:    lwhsu (mentor)
Differential Revision:  https://reviews.freebsd.org/D56269

(cherry picked from commit cb0e3a5fba5fe48607db8c1042bfe6a1164e0db7)
DeltaFile
+770-237contrib/openresolv/resolvconf.in
+141-85contrib/openresolv/resolvconf.8.in
+142-40contrib/openresolv/resolvconf.conf.5.in
+159-0contrib/openresolv/resolvectl.in
+96-0contrib/openresolv/systemd-resolved.in
+57-25contrib/openresolv/libc.in
+1,365-38711 files not shown
+1,514-42717 files

FreeBSD/src f7675fasys/compat/freebsd32 freebsd32_systrace_args.c freebsd32_syscall.h, sys/kern systrace_args.c

Regen
DeltaFile
+26-0sys/kern/systrace_args.c
+26-0sys/compat/freebsd32/freebsd32_systrace_args.c
+6-0sys/sys/sysproto.h
+2-1sys/sys/syscall.h
+2-1sys/compat/freebsd32/freebsd32_syscall.h
+2-1sys/sys/syscall.mk
+64-36 files not shown
+72-312 files

FreeBSD/src 3e8b68clib/libsys pdfork.2 Makefile.sys

pdfork.2: document pdopenpid(2)

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57124
DeltaFile
+68-0lib/libsys/pdfork.2
+1-0lib/libsys/Makefile.sys
+69-02 files

FreeBSD/src 5a5affdlib/libsys pdfork.2

pdfork.2: clarify that PD_DAEMON acts on current file

Also do not start a new list for each flag item.

Reviewed by:    markj
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential revision:  https://reviews.freebsd.org/D57124
DeltaFile
+8-2lib/libsys/pdfork.2
+8-21 files

FreeBSD/src 1cced49lib/libsys pdfork.2

pdfork.2: document EINVAL for pdwait(2)

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57124
DeltaFile
+5-0lib/libsys/pdfork.2
+5-01 files

FreeBSD/src d6ff3bblib/libsys Symbol.sys.map, sys/sys procdesc.h

libsys: export pdopenpid(2)

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57124
DeltaFile
+1-0sys/sys/procdesc.h
+1-0lib/libsys/Symbol.sys.map
+2-02 files

FreeBSD/src 606061esys/bsm audit_kevents.h, sys/kern sys_procdesc.c syscalls.master

sys: add AUE_PDOPENPID

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57124
DeltaFile
+10-0sys/security/audit/audit_bsm.c
+3-0sys/kern/sys_procdesc.c
+1-1sys/kern/syscalls.master
+1-0sys/bsm/audit_kevents.h
+15-14 files

FreeBSD/src 5c32aa7sys/kern sys_procdesc.c syscalls.master, sys/sys procdesc.h

kern: add pdopenpid(2)

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57124
DeltaFile
+102-12sys/kern/sys_procdesc.c
+7-0sys/kern/syscalls.master
+2-0sys/sys/procdesc.h
+111-123 files

FreeBSD/src c0e1201sys/kern sys_procdesc.c, sys/sys procdesc.h file.h

procdesc: make PD_DAEMON per-file

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57124
DeltaFile
+17-9sys/kern/sys_procdesc.c
+6-1sys/sys/procdesc.h
+1-0sys/sys/file.h
+24-103 files

FreeBSD/src 18b6bb5sys/kern sys_procdesc.c kern_exit.c, sys/sys procdesc.h

procdesc: track count of open files

Introduce pd_fpcount that counts the number of file references to the
procdesc.  Remove the PDF_CLOSED flag, now it is expressed as
pd_fpcount == 0.

Only send SIGKILL and clear pointers when we are closing the last file
referencing procdesc.

This should be nop until the next commit.

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57124
DeltaFile
+11-6sys/kern/sys_procdesc.c
+2-2sys/kern/kern_exit.c
+3-1sys/sys/procdesc.h
+16-93 files

FreeBSD/src 90b560fsys/kern sys_procdesc.c

sys_procdesc: extract procdesc_destroy()

Reviewed byL    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57124
DeltaFile
+9-3sys/kern/sys_procdesc.c
+9-31 files

FreeBSD/src 9747701sys/kern sys_procdesc.c

sys_procdesc: extract pdtofdflags()

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57124
DeltaFile
+12-7sys/kern/sys_procdesc.c
+12-71 files

FreeBSD/src 599d021sys/kern sys_procdesc.c

sys_procdesc: extract procdesc_alloc()

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57124
DeltaFile
+24-12sys/kern/sys_procdesc.c
+24-121 files

FreeBSD/src aa1694esys/kern sys_procdesc.c

procdesc_exit(): assert that _exit() was called

Check that the P_WEXIT flag is set.

Requested by:   markj
Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57124
DeltaFile
+1-0sys/kern/sys_procdesc.c
+1-01 files

FreeBSD/src bdbad7bcontrib/openresolv resolvconf.in resolvconf.8.in

contrib/openresolv: MFV openresolv 3.17.4

Reviewed by:    pfg
Approved by:    lwhsu (mentor)
Differential Revision:  https://reviews.freebsd.org/D56269

(cherry picked from commit cb0e3a5fba5fe48607db8c1042bfe6a1164e0db7)
DeltaFile
+770-237contrib/openresolv/resolvconf.in
+141-85contrib/openresolv/resolvconf.8.in
+142-40contrib/openresolv/resolvconf.conf.5.in
+159-0contrib/openresolv/resolvectl.in
+96-0contrib/openresolv/systemd-resolved.in
+57-25contrib/openresolv/libc.in
+1,365-38711 files not shown
+1,514-42717 files