dragonfly.git
59 min agoautofs: Fix example file installation. master
Sascha Wildner [Fri, 5 Jun 2020 09:42:31 +0000 (11:42 +0200)]
autofs: Fix example file installation.

Reported-by: deef
11 hours agokernel - Refactor kern_kevent(), fix timeout overflow (ppoll() bug)
Matthew Dillon [Thu, 4 Jun 2020 23:33:04 +0000 (16:33 -0700)]
kernel - Refactor kern_kevent(), fix timeout overflow (ppoll() bug)

* Fix a bug where large timeouts or very small timeouts could
  overflow the ustimeout variable.  Change the internal timeout
  cap to ensure that no overflow occurs.

* Fix another bug where the internal timeout cap could cause
  ppoll() to return early.  Internal tsleep (etc) timeouts
  need to be ignored because the external timeout might be
  larger and will handle the error return for us when it is
  checked.

* Refactor kern_kevent() to be somewhat more efficient.

Reported-by: rsmarples
13 hours agoA little cleanup after recent dhcpcd(8) changes.
Sascha Wildner [Thu, 4 Jun 2020 21:31:34 +0000 (23:31 +0200)]
A little cleanup after recent dhcpcd(8) changes.

* Remove /var/chroot via 'make upgrade' for now.

* Use spaces for indenting in BSD.var.dist.

* Un-document dhcpcd_chrootdir and /var/chroot.

13 hours agodhcp: Restore /var/empty as the homedir
Roy Marples [Thu, 4 Jun 2020 21:26:12 +0000 (21:26 +0000)]
dhcp: Restore /var/empty as the homedir

Punt the old chroot /var/chroot/dhcp

13 hours agoautofs: Continue installing auto_master to /usr/share/examples/etc too.
Sascha Wildner [Thu, 4 Jun 2020 21:24:30 +0000 (23:24 +0200)]
autofs: Continue installing auto_master to /usr/share/examples/etc too.

We keep an unmodified copy of our shipped /etc in /usr/share/examples/etc
and the recent move of auto_master from etc/ (where we get this copying
gratis) to usr.sbin/autofs requires an extra Makefile now.

14 hours agoedk2: Bring in a bunch of additional TianoCore EDK II headers.
Sascha Wildner [Thu, 4 Jun 2020 19:31:29 +0000 (21:31 +0200)]
edk2: Bring in a bunch of additional TianoCore EDK II headers.

Taken from the MdePkg of the edk2-stable202005 tag of the
git://github.com/tianocore/edk2 repository. All I modified was
killing CRs using 'tr -d "\015"'.

In preparation for some upcoming efidp work in libefivar.

15 hours agoedk2: Sync our TianoCore EDK II headers with the edk2-stable202005 tag.
Sascha Wildner [Thu, 4 Jun 2020 19:29:47 +0000 (21:29 +0200)]
edk2: Sync our TianoCore EDK II headers with the edk2-stable202005 tag.

18 hours agoFD_SET: cast away signed vs unsigned conversion warnings
Roy Marples [Thu, 4 Jun 2020 15:50:20 +0000 (15:50 +0000)]
FD_SET: cast away signed vs unsigned conversion warnings

21 hours agodhcpcd: Update README
Roy Marples [Thu, 4 Jun 2020 13:29:54 +0000 (13:29 +0000)]
dhcpcd: Update README

21 hours agoBuild with dhcpcd-9.1.1
Roy Marples [Thu, 4 Jun 2020 13:27:21 +0000 (13:27 +0000)]
Build with dhcpcd-9.1.1

21 hours agoMerge branch 'vendor/DHCPCD'
Roy Marples [Thu, 4 Jun 2020 13:25:22 +0000 (13:25 +0000)]
Merge branch 'vendor/DHCPCD'

21 hours agoImport dhcpcd-9.1.1 with the following changes: vendor/DHCPCD
Roy Marples [Thu, 4 Jun 2020 13:23:18 +0000 (13:23 +0000)]
Import dhcpcd-9.1.1 with the following changes:

 * Restore dumping leases from stdin
 * auth: Only accept RECONFIGURE messages from LL addresses
 * auth: Access the RDM monotonic counter file via privsep
 * ARP: call arp_announced() when cancelling it
 * BSD: fwip(4) interfaces are now ignored by default
 * privsep: Ensure IPC buffers are large enough to carry messages
 * privsep: Only open RAW sockets for the needed protocols
 * privsep: Fix indirect ioctls returning data
 * privsep: wait for processes on SIGCHLD rather than when sent a STOP cmd
 * eloop: just use ppoll/pollts(2), falling back to pselect(2)

23 hours agodrm/linux: Add pid_nr()
François Tigeot [Thu, 4 Jun 2020 11:35:29 +0000 (13:35 +0200)]
drm/linux: Add pid_nr()

23 hours agodrm/linux: Fix ratelimit.h copyright
François Tigeot [Thu, 4 Jun 2020 11:33:43 +0000 (13:33 +0200)]
drm/linux: Fix ratelimit.h copyright

24 hours agonrelease: Stop putting the wpa_supplicant pkg on our install media.
Sascha Wildner [Thu, 4 Jun 2020 10:19:08 +0000 (12:19 +0200)]
nrelease: Stop putting the wpa_supplicant pkg on our install media.

Base wpa_supplicant was recently upgraded to 2.9.

27 hours agobuild.7: mention "build-all" and "install-all" targets
Daniel Fojt [Thu, 4 Jun 2020 07:01:24 +0000 (09:01 +0200)]
build.7: mention "build-all" and "install-all" targets

Describe "build-all" and "install-all" targets in both Makefile
and build(7).

Submitted by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
Issue: https://bugs.dragonflybsd.org/issues/3229

28 hours agokernel: avoid possible sysctl integer overflow in acpi_thinkpad(4)
Daniel Fojt [Thu, 4 Jun 2020 05:28:22 +0000 (07:28 +0200)]
kernel: avoid possible sysctl integer overflow in acpi_thinkpad(4)

41 hours agoautofs: Remove BUGS section from autofs(5)
Tomohiro Kusumi [Wed, 3 Jun 2020 17:28:36 +0000 (02:28 +0900)]
autofs: Remove BUGS section from autofs(5)

vfs.autofs.mount_on_stat was initially nop, but removed later on.

41 hours agoautofs: Sync autofs(5) with FreeBSD
Tomohiro Kusumi [Wed, 3 Jun 2020 17:20:05 +0000 (02:20 +0900)]
autofs: Sync autofs(5) with FreeBSD

from freebsd/freebsd@215ce0ad1ae5c6fa927904738502bfe39bf56ac2

Minimize diff vs FreeBSD.
vfs.autofs.mount_on_stat (automount on vop_getattr) is unsupported.

44 hours agokernel/acpi: sync acpi_thinkpad with FreeBSD acpi_ibm
Pierre-Alain TORET [Wed, 3 Jun 2020 14:13:14 +0000 (16:13 +0200)]
kernel/acpi: sync acpi_thinkpad with FreeBSD acpi_ibm

Note: sysctl(8) variables hw.acpi.thinkpad.* have moved to
      dev.acpi_thinkpad.0.*

Discussed with: Sascha Wildner
Reviewed and tested by: Daniel Fojt

46 hours agodrm: Add Coccinelle transformation scripts
François Tigeot [Wed, 3 Jun 2020 12:30:25 +0000 (14:30 +0200)]
drm: Add Coccinelle transformation scripts

In order to automate various changes in cases where the original
Linux source code cannot be used unmodified.

2 days agokernel/efirt: Fix a kfree(NULL) panic when deleting a UEFI variable.
Sascha Wildner [Tue, 2 Jun 2020 18:24:30 +0000 (20:24 +0200)]
kernel/efirt: Fix a kfree(NULL) panic when deleting a UEFI variable.

There is no data in this case. Rest of function is ok, just a forgotten
datasize check.

2 days agoUpgrade grep(1). 2/2
Daniel Fojt [Tue, 2 Jun 2020 16:59:02 +0000 (18:59 +0200)]
Upgrade grep(1). 2/2

Adapt master branch to vendor update:

- update README.DELETED and README.DRAGONFLY
- re-generate header files
- adapt build
- sync manpage grep.1 with vendor

Reviewed by: Sascha Wildner

2 days agoUpgrade grep(1). 1/2
Daniel Fojt [Tue, 2 Jun 2020 16:58:15 +0000 (18:58 +0200)]
Upgrade grep(1). 1/2

Merge branch 'vendor/GREP' into master.

2 days agovendor/grep: upgrade from 2.22 to 3.4 vendor/GREP
Daniel Fojt [Tue, 2 Jun 2020 16:56:39 +0000 (18:56 +0200)]
vendor/grep: upgrade from 2.22 to 3.4

2 days agoautofs: Move autofs related configs to usr.sbin/autofs/
Tomohiro Kusumi [Tue, 2 Jun 2020 14:30:05 +0000 (23:30 +0900)]
autofs: Move autofs related configs to usr.sbin/autofs/

from freebsd/freebsd@b92449059479770813b2766a0e757d1176e2fab6

FreeBSD has moved autofs scripts to autofs userspace code a while ago.
The end result doesn't change.

3 days agobsd-family-tree: Sync with FreeBSD (2.11BSD release date fix).
Sascha Wildner [Tue, 2 Jun 2020 08:40:39 +0000 (10:40 +0200)]
bsd-family-tree: Sync with FreeBSD (2.11BSD release date fix).

3 days agoetc/network.subr: enhance wlan initialization
Daniel Fojt [Fri, 29 May 2020 17:34:24 +0000 (19:34 +0200)]
etc/network.subr: enhance wlan initialization

Introduce new functions wlan_get_unused() and wlan_is_parent(),
and extend wlan_up() to utilize them.

With this change, devices configured the traditional way in rc.conf(5)
are created first, and then all other wireless interfaces are assigned
to next available wlan<index> devices automatically.

This allows either to have wlan configured manually in rc.conf(5) via
"wlans_<iface>" or to remove the static assignment and let devices be
auto-created. With dhcpcd_enable and wpa_supplicant_enable in rc.conf,
no further configuration is then needed to get network connectivity.

Furthermore, this will allow to enhance devd(8) default configuration,
so that also hot-pluggable wireless interfaces are automatically detected
and brought up (ie. assigned to wlan<index> devices).

Reviewed by: Aaron LI

3 days agodhcpcd: Move any existing files out of the dhcp chroot.
Roy Marples [Mon, 1 Jun 2020 13:57:36 +0000 (13:57 +0000)]
dhcpcd: Move any existing files out of the dhcp chroot.

So it's empty once more.

4 days agodhcpcd: Remove chroot setup and restore things as they were before
Roy Marples [Mon, 1 Jun 2020 10:12:39 +0000 (10:12 +0000)]
dhcpcd: Remove chroot setup and restore things as they were before

Newer dhcpcd has an empty chroot.

4 days agoMerge branch 'vendor/DHCPCD'
Roy Marples [Mon, 1 Jun 2020 10:02:34 +0000 (10:02 +0000)]
Merge branch 'vendor/DHCPCD'

4 days agoUpdate to dhcpcd-9.1.0 with the following changes:
Roy Marples [Mon, 1 Jun 2020 09:57:38 +0000 (09:57 +0000)]
Update to dhcpcd-9.1.0 with the following changes:

 * Leases are stored outside the chroot again
 * The chroot directory can now be (and should be) empty [1]
 * BPF: set write filters when supported
 * ARP is now per address rather than per interface
 * Filter allowed ioctls in the privileged actioneer
 * Filter allowed UDP ports used by sendto(2) in the privileged actioneer
 * Filter allowed file paths in the privileged actioneer
 * route socket is now drained on overflow as it cannot be
   re-opened by the unpriviledged user

 * hostname can no longer be clobbered by SLAAC
 * grep is no longer used by the test hook
 * Interface hardware address type changes are now picked up
 * Fixed some RA timing issues
 * Fixed nd_* option parsing in dhcpcd.conf
 * Allow SIGPIPE in scripts
 * Default dhcpcd.conf no longer sends the current hostname
 * Default dhcpcd.conf no longer sends a vendorclassid

5 days agodsynth - Track contents of dports to detect changes
Matthew Dillon [Sun, 31 May 2020 00:36:00 +0000 (17:36 -0700)]
dsynth - Track contents of dports to detect changes

* Stat information and path names for the files making up a port
  (in the dports directly tree) is rolled-up into a CRC and tracked
  by dsynth.

* By default, dsynth automatically rebuilds any dport that it detects
  has changed, even if a binary package file already exists, including
  any dependent ports.

* Add the -x and -xx options which may be used to override this behavior.

5 days agokernel/pci: Remove embedded newlines in sysctl descriptions.
Sascha Wildner [Sat, 30 May 2020 18:12:23 +0000 (20:12 +0200)]
kernel/pci: Remove embedded newlines in sysctl descriptions.

5 days agokernel/pci: Correct an old TUNABLE_INT() to TUNABLE_ULONG().
Sascha Wildner [Sat, 30 May 2020 17:46:09 +0000 (19:46 +0200)]
kernel/pci: Correct an old TUNABLE_INT() to TUNABLE_ULONG().

While here, make the sysctl description look nicer.

5 days agodsynth - Work on count mismatch issues, fix binary pkg deletion
Matthew Dillon [Sat, 30 May 2020 15:43:20 +0000 (08:43 -0700)]
dsynth - Work on count mismatch issues, fix binary pkg deletion

* The remaining count issue was due to an incorrect test
  involving PKGF_NOTREADY, which also happens to be the code
  which is supposed to delete packages with missing or modified
  dependencies.

* Fix the test.  This should fix both the remaining count issue
  (any remaining issues will be logged in 05*.log), and hopefully
  also properly delete packages with missing or modified dependencies
  at the start of the run (logged as DELETE-PACKAGE in 00*.log).

Reported-by: tuxillo
5 days agodsynth - Work on count mismatch issues
Matthew Dillon [Sat, 30 May 2020 06:38:11 +0000 (23:38 -0700)]
dsynth - Work on count mismatch issues

* Sometimes the individual counts do not add up to the total
  count.

* Fix an issue where 'pkg' is not always accounted for.

* Fix an issue where certain ignored packages are not passed on
  to the service list.

* Log unexpected PKGF_PACKAGED state in 05_abnormal*.log.  This
  typically occurs on incremental runs and is not being properly
  accounted for.

* Log any packages left over on the origination list after the
  run completes to 05_abnormal*.log.  These are usually dependencies
  on ports which do not exist in dports.

6 days agoRemove references to acpinames(8) from various manual pages.
Sascha Wildner [Fri, 29 May 2020 20:17:14 +0000 (22:17 +0200)]
Remove references to acpinames(8) from various manual pages.

6 days agousr.sbin/autofs: Cleanup workaround code for a VFS bug
Tomohiro Kusumi [Fri, 29 May 2020 16:46:19 +0000 (01:46 +0900)]
usr.sbin/autofs: Cleanup workaround code for a VFS bug

6 days agoautofs: Minimize non functional diff vs FreeBSD
Tomohiro Kusumi [Fri, 29 May 2020 15:45:05 +0000 (00:45 +0900)]
autofs: Minimize non functional diff vs FreeBSD

7 days agosys/sys/mount.h: Add fsidcmp()
Tomohiro Kusumi [Thu, 28 May 2020 17:33:09 +0000 (02:33 +0900)]
sys/sys/mount.h: Add fsidcmp()

Only used by autofs at the moment.

from freebsd/freebsd@30596480c966b8d8bc7436df3467ab2eac145751

7 days agoSync ACPICA with Intel's version 20200528.
Sascha Wildner [Fri, 29 May 2020 07:05:17 +0000 (09:05 +0200)]
Sync ACPICA with Intel's version 20200528.

* Remove acpinames(8). Its functionality is covered by acpiexec(8)'s
  'namespace' command.

* Add preliminary support for 'PlatformRtMechanism' address space
  (will be in the next ACPI specification).

* Fix some issues in iasl(8).

For detailed list, please see sys/contrib/dev/acpica/changes.txt.

7 days agokernel - Fix efivar panic
Matthew Dillon [Fri, 29 May 2020 05:41:32 +0000 (22:41 -0700)]
kernel - Fix efivar panic

* The efirt driver uses direct-map mode, and creates an independent
  pmap to hold it.  The direct map typically uses userspace addresses,
  so SMAP must be disabled across any EFI call.

* Add smap_open(), smap_close(), smap_smep_disable(), and
  smap_smep_enable() calls for C.

  NOTE: We also have to set pcb_onfault to non-NULL to bypass failsafe
checks done in trap().

* Hack the EFI address space code to disable SMAP and SMEP across
  the EFI call.  Unfortunately since we also have to disable SMEP,
  these functions have to manipulate CR4.

Reported-by: daftaupe
8 days agopatch(1): sync with FreeBSD to version 2.0-12u11
Daniel Fojt [Tue, 26 May 2020 14:24:08 +0000 (16:24 +0200)]
patch(1): sync with FreeBSD to version 2.0-12u11

Summary of notable changes from previous sync:

- add -Vnone option to disable backup files
- avoid infinite loop asking for a filename
- add support for git generated diffs
- don't overrun line buffer in some cases
- fix the file removal test
- give /dev/null patches special treatment

8 days agoTest commit.
Daniel Fojt [Thu, 28 May 2020 06:56:25 +0000 (08:56 +0200)]
Test commit.

Update test/test/README as suggested in committer(7).

Recommended by: Sascha Wildner :)

9 days agoClean up the namespace of <sys/timeb.h>.
Sascha Wildner [Tue, 26 May 2020 17:22:04 +0000 (19:22 +0200)]
Clean up the namespace of <sys/timeb.h>.

While here, do some whitespace cleanup.

10 days agodrm/linux: Add down_write_killable()
François Tigeot [Mon, 25 May 2020 20:24:02 +0000 (22:24 +0200)]
drm/linux: Add down_write_killable()

10 days agoCURDIR returns an absolute path, so GENLOGDIR does not need this slash in it.
Justin C. Sherrill [Mon, 25 May 2020 15:51:04 +0000 (11:51 -0400)]
CURDIR returns an absolute path, so GENLOGDIR does not need this slash in it.

11 days agomount_msdos: Oops, really sort.
Sascha Wildner [Sun, 24 May 2020 20:28:09 +0000 (22:28 +0200)]
mount_msdos: Oops, really sort.

11 days agoClean up a few things after moving fparseln() to libc.
Sascha Wildner [Sun, 24 May 2020 20:20:02 +0000 (22:20 +0200)]
Clean up a few things after moving fparseln() to libc.

* mount_msdos: libutil.h's inclusion can now be sorted.

* mailwrapper: libutil is no longer needed.

* mtree: libutil is no longer needed either but when mtree is built
      as a bootstrap tool, we must make sure that the host's libc is
      sufficiently recent.

* makefs: makefs was relying on mtree's extern.h (which it includes)
      to bring in libutil.h. Add an explicit #include to makefs, now
      that mtree no longer needs libutil.

11 days agolibc: Bring in getdate() from NetBSD for POSIX conformance.
Sascha Wildner [Sun, 24 May 2020 11:48:04 +0000 (13:48 +0200)]
libc: Bring in getdate() from NetBSD for POSIX conformance.

11 days agolibutil/libc: Move fparseln(3) from libutil to libc.
Sascha Wildner [Sun, 24 May 2020 20:06:08 +0000 (22:06 +0200)]
libutil/libc: Move fparseln(3) from libutil to libc.

11 days agoRevert "libc: Bring in getdate() from NetBSD for POSIX conformance."
Sascha Wildner [Sun, 24 May 2020 11:40:18 +0000 (13:40 +0200)]
Revert "libc: Bring in getdate() from NetBSD for POSIX conformance."

This reverts commit 28bfdfe646cc75375bb9065f47aca011952469ef.

I need to work a bit more on this first.

12 days agolibc: Bring in getdate() from NetBSD for POSIX conformance.
Sascha Wildner [Sun, 24 May 2020 09:48:26 +0000 (11:48 +0200)]
libc: Bring in getdate() from NetBSD for POSIX conformance.

12 days agohack(6): Rename getdate() to getdatestr().
Sascha Wildner [Sun, 24 May 2020 09:46:45 +0000 (11:46 +0200)]
hack(6): Rename getdate() to getdatestr().

In preparation to importing POSIX getdate() to libc.

Taken-from: NetBSD

12 days agolibc/utmpx: Add missing #include "un-namespace.h" and adjust.
Sascha Wildner [Sun, 24 May 2020 06:55:46 +0000 (08:55 +0200)]
libc/utmpx: Add missing #include "un-namespace.h" and adjust.

12 days agolibc/devname: Move inclusion of <db.h> out of namespace.h / un-namespace.h.
Sascha Wildner [Sun, 24 May 2020 06:53:43 +0000 (08:53 +0200)]
libc/devname: Move inclusion of <db.h> out of namespace.h / un-namespace.h.

<db.h> is an exception because of DB's 'close' member.

12 days ago<sys/mount.h>: Put the <sys/mplock2.h> inclusion under _KERNEL.
Sascha Wildner [Sat, 23 May 2020 21:42:07 +0000 (23:42 +0200)]
<sys/mount.h>: Put the <sys/mplock2.h> inclusion under _KERNEL.

No need to include in userland.

Reported-by: tuxillo
13 days agoxargs.1: Change .Fx to .Dx where appropriate
Antonio Huete Jimenez [Sat, 23 May 2020 10:09:26 +0000 (12:09 +0200)]
xargs.1: Change .Fx to .Dx where appropriate

13 days ago<inttypes.h>: Small sync with FreeBSD.
Sascha Wildner [Sat, 23 May 2020 09:32:58 +0000 (11:32 +0200)]
<inttypes.h>: Small sync with FreeBSD.

13 days agoinclude/xlocale: Expose xlocale prototypes also upon wrong #include order.
Sascha Wildner [Sat, 23 May 2020 09:31:21 +0000 (11:31 +0200)]
include/xlocale: Expose xlocale prototypes also upon wrong #include order.

The correct order to expose xlocale prototypes is for example:

#include <stdio.h>
#include <xlocale.h>

This commit fixes the two cases where we didn't accept the reverse
order. FreeBSD's commit msg says that some ports use the wrong
order.

Based-on:    FreeBSD's r233600
Reported-by: zrj
13 days agoRemove patch(1) from the list of bootstrap tools.
Sascha Wildner [Sat, 23 May 2020 07:49:33 +0000 (09:49 +0200)]
Remove patch(1) from the list of bootstrap tools.

Now that we no longer ship patches in the tree, patch(1) is no longer
needed during buildworld, buildkernel etc. The last patch was removed
in d8d77baac2714febf36f4ac37afccbbbdcdc8857.

While here, also remove our old bsd.patch.mk which was used in the
old days to handle local changes to contrib/ code using patches we
shipped. Since we have git, we use vendor branches which we merge and
then just modify on master for this purpose.

13 days agoxargs(1): Sync with FreeBSD
Antonio Huete Jimenez [Sat, 23 May 2020 01:22:51 +0000 (03:22 +0200)]
xargs(1): Sync with FreeBSD

  Changes:
    - Use waitpid(2) instead of wait3(2), for portability reasons.
    - Call setlocale(3) with LC_ALL category instead of LC_MESSAGES.
    - Fix -0 vs -L/-I processing.
    - Add -S option to control the maximum size of an argument.
    - Make xargs(1) keep track of its children.
    - Wait for all invocations upon exit.
    - calloc(3) usage fixes.
    - Replace atoi(3) calls with stronum(3) ones.
    - Now -P0 creates as many concurrent processes as possible.
    - Fix exit status expression when a child fails to exec.

The -0 fix solves a problem with DPorts' graphics/libprojectm during stage phase.

13 days agolibstand: Apply our bzlib.c patch to master.
Sascha Wildner [Fri, 22 May 2020 21:34:50 +0000 (23:34 +0200)]
libstand: Apply our bzlib.c patch to master.

All it does is to add #ifdefs to compile decompression support only.

While here, remove some unneeded headers from SRCS.

13 days agobzip2: Bump WARNS to 3.
Sascha Wildner [Fri, 22 May 2020 19:10:46 +0000 (21:10 +0200)]
bzip2: Bump WARNS to 3.

13 days agobzip2: Update README.DRAGONFLY.
Daniel Fojt [Thu, 21 May 2020 05:37:09 +0000 (07:37 +0200)]
bzip2: Update README.DRAGONFLY.

13 days agoMerge branch 'vendor/BZIP'
Sascha Wildner [Fri, 22 May 2020 18:36:11 +0000 (20:36 +0200)]
Merge branch 'vendor/BZIP'

13 days agovendor/bzip: upgrade bzip2 from 1.0.6 to 1.0.8 vendor/BZIP
Daniel Fojt [Thu, 21 May 2020 05:26:34 +0000 (07:26 +0200)]
vendor/bzip: upgrade bzip2 from 1.0.6 to 1.0.8

Fixes CVE-2016-3189 and CVE-2019-12900.

13 days agohier.7: Describe /var/chroot (taken from NetBSD).
Sascha Wildner [Fri, 22 May 2020 17:01:52 +0000 (19:01 +0200)]
hier.7: Describe /var/chroot (taken from NetBSD).

2 weeks agosyscall.9: Adjust for the makesyscalls.sh changes.
Sascha Wildner [Fri, 22 May 2020 08:52:21 +0000 (10:52 +0200)]
syscall.9: Adjust for the makesyscalls.sh changes.

2 weeks agokernel: Clean up some no longer used types from makesyscalls.sh.
Sascha Wildner [Fri, 22 May 2020 08:49:24 +0000 (10:49 +0200)]
kernel: Clean up some no longer used types from makesyscalls.sh.

2 weeks ago<machine/pc/bios.h>: Switch to standard types for a few remaining cases.
Sascha Wildner [Fri, 22 May 2020 08:09:16 +0000 (10:09 +0200)]
<machine/pc/bios.h>: Switch to standard types for a few remaining cases.

2 weeks agokernel: Clean up a few headers a bit.
Sascha Wildner [Fri, 22 May 2020 08:06:07 +0000 (10:06 +0200)]
kernel: Clean up a few headers a bit.

Remove 'extern' and parameter names from function prototypes.

2 weeks agozoneinfo: Remove the obsolete systemv file.
Sascha Wildner [Thu, 21 May 2020 19:45:12 +0000 (21:45 +0200)]
zoneinfo: Remove the obsolete systemv file.

2 weeks agowpa_supplicant: Adjust master for the 2.9 upgrade.
Daniel Fojt [Sun, 3 May 2020 11:20:47 +0000 (13:20 +0200)]
wpa_supplicant: Adjust master for the 2.9 upgrade.

- update README.DRAGONFLY and README.DELETED
- apply local modifications to contrib/wpa_supplicant
- adapt build to vendor update
- update manpages wpa_cli(8), wpa_passphrase(8) and wpa_supplicant(8)
- update /etc/wpa_supplicant.conf

Adapt rc script:

- add is_wired_interface() and is_ndis_interface() to network.subr (taken
  from FreeBSD)
- remove "security" warning
- don't consider DPorts wpa_supplicant anymore
- allow wpa_supplicant to be launched either for a single interface or in
  interface matching mode, ie. single daemon handling multiple interfaces
- add wpa_supplicant_* variables to /etc/defaults/rc.conf

2 weeks agoMerge branch 'vendor/WPA_SUPPLICANT'
Sascha Wildner [Thu, 21 May 2020 19:31:34 +0000 (21:31 +0200)]
Merge branch 'vendor/WPA_SUPPLICANT'

2 weeks agoworld - libmagic depends on several other libraries
Matthew Dillon [Wed, 20 May 2020 20:57:05 +0000 (13:57 -0700)]
world - libmagic depends on several other libraries

* Fix missing dependencies. libmagic needs libbz2 and liblzma.

* Fixes devel/py-subversion@py27 build

Reported-by: tuxillo
2 weeks agotzsetup(8): Sync with FreeBSD, more or less, with some modifications.
Sascha Wildner [Wed, 20 May 2020 15:31:35 +0000 (17:31 +0200)]
tzsetup(8): Sync with FreeBSD, more or less, with some modifications.

New things:

* When in a VM, skip the initial question about the hardware clock
  being set to UTC because it is assumed that the hardware clock in
  a VM is set to UTC.

* Split out the dialog(3) code into #ifdef HAVE_DIALOG.

* Some miscellaneous fixes.

The dialog(3) code separation allows us to build tzsetup(8) as a
bootstrap tool without needing libdialog and friends. Prepare the
Makefile for this by not defining HAVE_DIALOG when bootstrapping.
It will be used in a later commit to upgrade /etc/localtime upon
installing new timezones.

2 weeks agondp(8): Tweak Makefile against the tcpdump update
Aaron LI [Sun, 17 May 2020 07:49:39 +0000 (15:49 +0800)]
ndp(8): Tweak Makefile against the tcpdump update

The new tcpdump enables IPv6 by default, so there is no need to define
the 'INET6' flag.

Clean the style a bit.

2 weeks agotcpdump(8): Workaround compilation warnings and raise WARNS to 3
Aaron LI [Sun, 17 May 2020 08:01:20 +0000 (16:01 +0800)]
tcpdump(8): Workaround compilation warnings and raise WARNS to 3

It's necessay to fix these compilation warnings in print-esp.c,
otherwise we would be forced to use WARNS of 0.

Credit to FreeBSD for the workaround.

2 weeks agotcpdump(8): Regenerate config.h and update Makefile
Aaron LI [Sun, 17 May 2020 07:44:20 +0000 (15:44 +0800)]
tcpdump(8): Regenerate config.h and update Makefile

* Regenerate config.h
* Update Makefile against to the vendor update
* Define more macros / flags in Makefile for IPv6 and our private
  LibreSSL library. (Credit to FreeBSD)
* Improve the tcpdump.1 man page generate a bit
* Clean up the Makefile a bit

Credit to deef (Daniel Fojt) for doing the vendor update.

2 weeks agocontrib/tcpdump: Apply our own modifications
Aaron LI [Sun, 17 May 2020 07:43:37 +0000 (15:43 +0800)]
contrib/tcpdump: Apply our own modifications

2 weeks agocontrib/tcpdump: Update README.DRAGONFLY
Aaron LI [Sun, 17 May 2020 07:36:33 +0000 (15:36 +0800)]
contrib/tcpdump: Update README.DRAGONFLY

2 weeks agoMerge branch 'vendor/TCPDUMP' (version 4.3.0 -> 4.9.3)
Aaron LI [Mon, 18 May 2020 22:41:06 +0000 (06:41 +0800)]
Merge branch 'vendor/TCPDUMP' (version 4.3.0 -> 4.9.3)

2 weeks agocontrib/tcpdump: Revert local modification for vendor update
Aaron LI [Mon, 18 May 2020 22:39:55 +0000 (06:39 +0800)]
contrib/tcpdump: Revert local modification for vendor update

2 weeks agovendor/TCPDUMP: Import tcpdump 4.9.3 vendor/TCPDUMP
Aaron LI [Mon, 18 May 2020 22:35:30 +0000 (06:35 +0800)]
vendor/TCPDUMP: Import tcpdump 4.9.3

Original source can be downloaded from:
https://www.tcpdump.org/release/

file = tcpdump-4.9.3.tar.gz
date = 2019-10-01
size = 2333119
sha1 = 59b309f3620ac4b709de2eaf7bf3a83bf04bc048

A list of files and directories removed is in README.DELETED.

2 weeks agolibpcap: Remove unused header file after the upgrade
Aaron LI [Sun, 17 May 2020 04:45:06 +0000 (12:45 +0800)]
libpcap: Remove unused header file after the upgrade

2 weeks agolibpcap: Regenerate config.h and update Makefile
Aaron LI [Sun, 17 May 2020 04:39:09 +0000 (12:39 +0800)]
libpcap: Regenerate config.h and update Makefile

* Regenerate config.h
* Update Makefile against to the vendor update

Don't bump the libpcap so version because the API change is small as
suggested by zrj.  In addition, my limited tests showed that tcpdump(8),
wpa_supplicant(8) and pflogd(8) also works with the new libpcap.so.

Credit to deef (Daniel Fojt) for doing most of the work.

2 weeks agocontrib/libpcap: Apply patches from DPorts net/libpcap
Aaron LI [Mon, 18 May 2020 15:13:32 +0000 (23:13 +0800)]
contrib/libpcap: Apply patches from DPorts net/libpcap

2 weeks agocontrib/libpcap: Reapply our local modifications
Aaron LI [Sun, 17 May 2020 04:37:55 +0000 (12:37 +0800)]
contrib/libpcap: Reapply our local modifications

2 weeks agocontrib/libpcap: Update README.DRAGONFLY
Aaron LI [Sun, 17 May 2020 04:35:29 +0000 (12:35 +0800)]
contrib/libpcap: Update README.DRAGONFLY

2 weeks ago<net/dlt.h>: Sync with libpcap 1.9.1
Aaron LI [Sun, 17 May 2020 03:32:30 +0000 (11:32 +0800)]
<net/dlt.h>: Sync with libpcap 1.9.1

Our current <net/dlt.h> is missing some macros for libpcap 1.9.1, so
sync ours with the one from libpcap 1.9.1.  FreeBSD is also using the
<net/dlt.h> from libpcap.

2 weeks agolibpcap: Clean up Makefile
Aaron LI [Sun, 17 May 2020 00:52:01 +0000 (08:52 +0800)]
libpcap: Clean up Makefile

* Group sections better and sort files
* Add 'scanner.h' to SRCS and specify its dependency.  Without this,
  just 'make' in the lib/libpcap directory would fail because it cannot
  find the 'scanner.h' file.

2 weeks agoMerge branch 'vendor/LIBPCAP' (version 1.8.1 -> 1.9.1)
Aaron LI [Mon, 18 May 2020 14:49:16 +0000 (22:49 +0800)]
Merge branch 'vendor/LIBPCAP' (version 1.8.1 -> 1.9.1)

2 weeks agocontrib/libpcap: Revert local modification for vendor update
Aaron LI [Mon, 18 May 2020 14:48:07 +0000 (22:48 +0800)]
contrib/libpcap: Revert local modification for vendor update

2 weeks agovendor/LIBPCAP: Import libpcap 1.9.1 vendor/LIBPCAP
Aaron LI [Mon, 18 May 2020 14:42:47 +0000 (22:42 +0800)]
vendor/LIBPCAP: Import libpcap 1.9.1

Original source can be downloaded from:
https://www.tcpdump.org/release/

file = libpcap-1.9.1.tar.gz
date = 2019-10-01
size = 861228
sha1 = 04d6e619defad5bb17af15f6d2304e79b649786c

A list of files and directories removed is in README.DELETED.

2 weeks agoinstaller: Fix process killing issue in installer.sh
Aaron LI [Sat, 16 May 2020 06:43:20 +0000 (14:43 +0800)]
installer: Fix process killing issue in installer.sh

The original way of obtaining PIDs is actually wrong, becuase it would
get the user of processes instead of the process ID.

Directly use killall(1) to fix the issue as well as clean the code.

2 weeks agonrelease: Use pw(8) and chpass(1) to setup 'installer' and 'root' users
Aaron LI [Sat, 16 May 2020 04:45:42 +0000 (12:45 +0800)]
nrelease: Use pw(8) and chpass(1) to setup 'installer' and 'root' users

Use pw(8) to add the 'installer' user and use chpass(1) to disable
passwords for the 'installer' and 'root' users.  So we can drop the
customized 'master.passwd' file and be in sync with the one in
usr/src/etc.

2 weeks agonrelease: Recopy passwd and master.passwd as well
Aaron LI [Sat, 16 May 2020 04:52:12 +0000 (12:52 +0800)]
nrelease: Recopy passwd and master.passwd as well

Ports/packages may also install new users.

While there, use '--yes' option for 'pkg autoremove' to clean a bit.

2 weeks agonrelease: Remove superfluous files
Aaron LI [Sat, 16 May 2020 03:37:06 +0000 (11:37 +0800)]
nrelease: Remove superfluous files

* The 'pwd.db' and 'spwd.db' files should be generated by pwd_mkdb(8).
* The 'login.conf' is not customized and thus not needed.

Anyway, the 'gui' framework is still using the deprecated pkgsrc
framework and has not been maintained for years...