Commit Graph

5571 Commits

Author SHA1 Message Date
christos b60051daa5 require NETWORKING otherwise amd can come up before the network is up and
it needs to be able to do DNS.
2021-03-01 23:02:30 +00:00
jakllsch 531ea916a2 Add /etc/ip6addrctl.conf as optional file so it is backed up. 2021-02-26 18:39:10 +00:00
rin 486b89c051 For ramdisk image, generate only 2 pairs of pty devices, instead of 16,
in order to save space further.
2021-02-25 07:58:39 +00:00
hannken 0c0601776b Enable "/etc/zfs/exports" from "zfs share" in rc.d/mountd and rc.d/mountall. 2021-02-16 10:02:42 +00:00
pgoyette 0d15fa02aa Add KERNEL_DIR to /etc/release
"Sure, why not" from xtos!
2021-02-14 18:45:44 +00:00
martin b2434f4d17 llvmlockdir -> lvmlockdir 2021-01-26 15:08:02 +00:00
martin 9869002d85 Rename etc/rc.d/llvmlockdir to lvmlockdir - it has nothing to do with LLVM,
the name probably was a freudian slip of my fingers when I split that
fragment out of another rc.d script.
2021-01-26 13:31:19 +00:00
rillig a5778d2e53 lint: install custom stdbool.h, used for strict bool mode 2021-01-17 19:32:52 +00:00
rillig 93104a9b2f lint: remove custom stdbool.h for strict bool mode again
Adding it broke the official builds.
2021-01-16 22:18:14 +00:00
rillig ea370484da add directory /usr/libdata/lint/strict-bool
This is needed for usr.bin/xlint/xlint.
2021-01-16 20:30:05 +00:00
riastradh cba96d16f7 Various entropy integration improvements.
- New /etc/security check for entropy in daily security report.

- New /etc/rc.d/entropy script runs (after random_seed and rndctl) to
  check for entropy at boot -- in rc.conf, you can:

  . set `entropy=check' to halt multiuser boot and enter single-user
    mode if not enough entropy

  . set `entropy=wait' to make multiuser boot wait until enough entropy

  Default is to always boot without waiting -- and rely on other
  channels like security report to alert the operator if there's a
  problem.

- New man page entropy(7) discussing the higher-level concepts and
  system integration with cross-references.

- New paragraph in afterboot(8) about entropy citing entropy(7) for
  more details.

This change addresses many of the issues discussed in security/55659.
This is a first draft; happy to take improvements to the man pages and
scripted messages to improve clarity.

I considered changing motd to include an entropy warning with a
reference to the entropy(7) man page, but it's a little trickier:
- Not sure it's appropriate for all users to see at login rather than
  users who have power to affect the entropy estimate (maybe it is,
  just haven't decided).
- We only have a mechanism for changing once at boot; the message would
  remain until next boot even if an operator adds enough entropy.
- The mechanism isn't really conducive to making a message appear
  conditionally from boot to boot.
2021-01-10 23:24:25 +00:00
martin 80e3db0075 If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling. 2020-12-29 16:46:44 +00:00
martin 5dd83105b3 Adjust to "pool" usage in our standard ntp.conf, pointed out
by Connor McLaughlan.
2020-12-25 13:42:02 +00:00
uwe c34ee3711d run_rc_command - don't prefix the rcvar variable name with the dollar sign.
The output without the dollar sign is less confusing as it's actual
valid shell syntax:

  $ /etc/rc.d/foo rcvar
  # food
  food=YES

Brought up on tech-userlevel@ by Rocky Hotas with some LGTMs from
other people and no objections.

We still refer to '$food' in warnings/errors though.
2020-12-20 21:30:28 +00:00
pgoyette 56b2bfc290 Add directory entry for new libossaudio test 2020-12-12 02:50:26 +00:00
jmcneill 161b30af53 acpi: add character device for accessing ACPI tables
The /dev/acpi character device gives an aperture into physical memory
that allows only read access to known ACPI tables: RSDP, XSDT/RSDT, and
the root tables. Adapt acpidump(8) to use this interface by default,
falling back to the old /dev/mem method if it is not available or if
ACPIDUMP_USE_DEVMEM=1 is set in the environment. The user visible benefit
of this change is that "options INSECURE" is no longer required to
dump ACPI tables.
2020-12-06 02:57:29 +00:00
wiz d5fdd803ef Update default pkgsrc database location from /var/db/pkg to /usr/pkg/pkgdb. 2020-12-02 14:18:13 +00:00
rin 7f6948285e Build RPI and RPI2 kernels also for earmv6{,hf}eb. 2020-12-01 04:20:21 +00:00
kamil a0bbc3d2d8 man.conf(5): Drop support for .me files
The .me troff macros are unused for any known man-pages.
2020-11-30 14:27:23 +00:00
riastradh 0be824883b Simplify default motd text and include donation link. 2020-11-25 21:40:22 +00:00
tsutsui 10596905a4 Create wd0 and wd1 device node for G1IDE kernel. 2020-11-25 15:14:03 +00:00
martin 9b9b5e208c Add /dev/pts as standard mountpoint for a ptyfs. 2020-11-23 12:41:47 +00:00
christos 80a97e389b Add /var/games/warp 2020-11-11 19:56:09 +00:00
kamil 994be4e978 Reintroduce the support of MKCATPAGES
Requested by <mrg>
2020-11-10 21:47:40 +00:00
rin 4bfe1533f7 Add nvme(4) and raid(4). 2020-11-10 11:22:22 +00:00
kamil fa9b238449 + ./usr/share/games/warp 2020-11-10 10:31:48 +00:00
rin 571f6efb48 Add nvme(4) and raid(4). 2020-11-10 08:52:36 +00:00
kamil 17e0cdd2e4 Remove the catman directories
No longer relevant after the MKCATPAGES removal.
2020-11-09 01:07:04 +00:00
christos 1501493b50 Add col tests 2020-11-01 22:29:13 +00:00
kamil 990d4b76d9 Register the usr/share/gdb dir 2020-10-24 07:03:00 +00:00
kim 063923df4b network: Update rtsol options
- Use "-6" instead of "--noipv4" as it seems more appropriate based on
  the dhcpcd(8) manual page.
- Remove "-f /dev/null" as it seems unnecessary with "-6".
- Remove "--persistent" as it is in the default /etc/dhcpcd.conf,
  and this way the user can change it, if they would like to (either
  through dhcpcd_flags or by editing /etc/dhcpcd.conf).

The "-b" (or "--background") option is needed to avoid a timeout error
message (and a delay in booting), so it is still left in place.
2020-10-16 15:31:04 +00:00
mgorny 268edb6f45 Add tests for process_xmm_to_s87() and process_s87_to_xmm() 2020-10-15 17:44:44 +00:00
kim f5010e6cd4 Update "rtsol" keyword: leave IPv6 autoconf on
There is no need to turn off ipv6_autoconf or dhcp6 in dhcpcd to match
the previous behaviour with in-kernel RA processing.
2020-10-15 07:05:27 +00:00
kim 2f25d90010 Make "rtsol" functional again. 2020-10-11 22:38:48 +00:00
jnemeth dcf9d0d48c Also edns-udp-size. 2020-10-11 22:14:55 +00:00
jnemeth db7cb834a5 Set max-udp-size as per DNS flag day 2020, see
https://www.isc.org/blogs/dns-flag-day-2020-2/ .
2020-10-11 22:11:36 +00:00
kim a477b03dfb Add iburst to peer and server. 2020-10-05 06:45:40 +00:00
kim eb131804a5 Use "pool" for the pool.ntp.org servers. Add some new hints.
- Use the "pool" keyword for obtaining servers from ntp.pool.org.
  - Add "tos minclock" and "tos maxclock" to limit the number of servers.
  - Add "restrict source" to apply appropriate restrictions to servers.
    (Specifically "nopeer" cannot be applied to "pool" servers.)
  - A single "pool" entry suffices -- using "2.netbsd.pool.ntp.org" so
    that we get both IPv4 and IPv6 addresses. (No addresses are returned
    for just "netbsd.pool.ntp.org.")
- Add a comment about "tinker panic 0" -- useful for VMs and laptops.
- Add a comment about "discard minimum" -- useful for some SNTP clients.
- Add an explanation for the "limited" restriction keyword.
- Unify whitespace and comment formatting.
2020-10-04 13:50:44 +00:00
jmcneill e9022974c1 Build arm64.img for aarch64eb with a LE FFS, and include GENERIC64 in
release builds.
2020-10-02 17:27:12 +00:00
roy bb8258cab8 Add if_tap directory for DEBUG builds. 2020-09-30 20:20:53 +00:00
martin ea05ef54e5 Revert previous - test is a shell script, no debug info installed 2020-09-30 08:32:00 +00:00
martin b498a32669 Add if_vether debug dir 2020-09-30 08:21:27 +00:00
mrg 0c0fa330b0 add missing new if_vether subdir. 2020-09-30 07:55:31 +00:00
msaitoh 811d5a8b03 s/parition/partition/ 2020-09-29 02:49:55 +00:00
thorpej 0c093eb79d GENERIC.MP is no more. GENERIC defaults to MULTIPROCESSOR now. 2020-09-19 03:29:57 +00:00
otis 5af20f9893 Fix waiting for PIDs on stop.
Fix expansion of positional parameters. Also move the local
variable declaration to more apropriate place.
2020-09-17 20:29:03 +00:00
mrg a8fd7c84b2 partial port to powerpc64. 2020-09-15 08:14:31 +00:00
kim 390227bdf6 Make a ": " suffix a fixed part of the release info tag
This results in correct updates to /etc/motd even when the value of
motd_release_tag is changed (a likely event).

Add safe quoting to outputting the read kernel version.

Thanks to kre@ for the feedback.
2020-09-11 12:50:14 +00:00
kim 6f0846e992 Add optional release info in /etc/motd
My personal preferencese for /etc/rc.conf:

    update_motd_release=YES
    motd_release_tag='Binaries: '

This provides an explanation to users about the second version in motd.
2020-09-11 09:59:35 +00:00
jmcneill 0e1281fab5 Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.
2020-09-09 12:06:02 +00:00
mrg 949f2e0433 add new /usr/include/g++/pstl for GCC 9. 2020-09-09 06:50:33 +00:00
martin 6cb68e4497 Ooops, overlooked one MOUNTCRITLOCAL reference in the rename to
CRITLOCALMOUNTED.
2020-09-08 16:10:53 +00:00
martin 8782d54f6b Sort - no functional change 2020-09-08 12:54:36 +00:00
martin 0a9098d00f Rename MOUNTCRITLOCAL to CRITLOCALMOUNTED to avoid a name collision
on case insensitive file systems
2020-09-08 12:52:18 +00:00
martin 2647485e8b Make it work with empty /var 2020-09-08 12:45:03 +00:00
mrg 9e08ce1e4b obsolete gcc-7 dirs. add gcc-9 dirs. 2020-09-06 10:59:51 +00:00
jakllsch c6e7ad1d3e Treat aarch64 and aarch64eb identically with regard to ld.so.conf 2020-09-03 18:59:33 +00:00
riastradh 25154f5f0c Clarify wg(4)'s relation to WireGuard, pending further discussion.
Still planning to replace wgconfig(8) and wg-keygen(8) by one wg(8)
tool compatible with wireguard-tools; update wg(4) for the minor
changes from the 2018-06-30 spec to the 2020-06-01 spec; &c.  This just
clarifies the current state of affairs as it exists in the development
tree for now.

Mark the man page EXPERIMENTAL for extra clarity.
2020-08-26 16:03:40 +00:00
nia 452f8ae6e8 uname -p, pointed out by various 2020-08-24 12:46:57 +00:00
riastradh 61fd7d67f5 [ozaki-r] Add wg files 2020-08-20 21:28:00 +00:00
nia 9fa431f295 Use sysctl -n hw.machine_arch so this works on e.g. aarch64
Ues HTTPS
2020-08-15 14:47:28 +00:00
simonb 389e112e68 Remove a misleading space in a ".elif". 2020-08-15 05:03:06 +00:00
gutteridge d4757d5dbf Fix minor typo, it's npf(7), not npf(4) 2020-08-09 23:43:58 +00:00
tsutsui 53f2f1c5b1 Add missed bpf(4) node for dhcpcd(8) in INSTALL floppies.
Should be pulled up to netbsd-9.
2020-08-09 00:56:44 +00:00
nia a819d6d927 Create 8 /dev/ldX by default, as with other disk drivers and ports 2020-08-03 04:32:13 +00:00
jdolecek b763920b00 add support for wwanc(4) device nodes (xmm[0-9]) 2020-07-26 15:47:27 +00:00
riastradh 1247092679 Add /usr/tests/sys/crypto/chacha to etc/mtree/NetBSD.dist.tests. 2020-07-26 05:06:29 +00:00
jmcneill 70370e75d4 evbmips: add ofctl(8) and /dev/openfirm support 2020-07-24 12:07:09 +00:00
roy a73ffa0270 Note the new resolvconf files 2020-07-22 19:02:01 +00:00
martin 31fc9817bb Split the local disk availability step into two phases to allow scripts
that pre-populate parts of the system (e.g. a tmpfs based /var) an
easy place to plug in like:

# REQUIRE: mountcritlocal
# BEFORE: MOUNTCRITLOCAL

This also cleans up the existing special handling a bit by separating it
into new scripts. All later scripts now depend on MOUNTCRITLOCAL.
Discussed on tech-userlevel some time ago.
2020-07-22 16:50:41 +00:00
jmcneill 4813953ca0 Create an "octeon.img.gz" bootable image for evbmips64-eb release builds. 2020-07-17 15:16:34 +00:00
simonb bc6a081a98 Rename the evbmips ERLITE kernel to OCTEON now that it supports more
than just the EdgeRouter Lite.
2020-07-15 12:15:30 +00:00
nia 0b57f0fb2a Point readers at wskbd.4 2020-07-13 11:17:54 +00:00
nia 1930f11c1e Update lists of keyboard layouts to add Turkish and Brazilian 2020-07-12 01:36:32 +00:00
skrll 08ffba536b Trailing whitespace 2020-07-04 06:24:53 +00:00
roy 1580d06b1a Add /var/db/dhcpcd back 2020-07-03 11:03:42 +00:00
jruoho 9cb1df3cd3 Add a check for PR bin/54692. 2020-07-03 04:25:28 +00:00
jruoho 7bd1b83147 Add a check for the overflow noted in PR lib/46542. 2020-07-03 03:59:18 +00:00
jdolecek 8c4f01a8e3 fix incomplete gnu/ deletion - PR misc/55444 by Jim Bernard 2020-07-02 11:08:55 +00:00
riastradh bd9707e06e New test sys/crypto/aes/t_aes.
Runs aes_selftest on all kernel AES implementations supported on the
current hardware, not just the preferred one.
2020-06-30 20:32:10 +00:00
jruoho 8b2d29b6bf Check that DTrace's execsnoop and opensnoop work (cf. PR kern/53417). 2020-06-30 14:30:49 +00:00
kim 79fd846d36 Fix /private/tmp mode to match etc/rc.d/perusertmp 2020-06-28 03:05:59 +00:00
jruoho 78bd8e59f5 Add a test case for PR kern/53767. 2020-06-27 05:20:34 +00:00
jruoho 9611465bb1 Verify that PR kern/52150 is no longer present. 2020-06-25 17:08:32 +00:00
jruoho 77e941ddd2 Add a test case for PR kern/53410. 2020-06-25 15:01:35 +00:00
jruoho 55d0ca692c Check that fstat(1) works (cf. PR kern/55407). 2020-06-24 10:05:07 +00:00
jruoho 3f1bde296f Add a few checks for stdethers(8) and stdhosts(8). 2020-06-24 09:47:17 +00:00
jruoho d60b9b731a Add few basic tests for cpuctl(8). These cover PR kern/45117 and PR bin/54220.
Though, the former is not explicitly tested as it hangs the system.
2020-06-24 09:32:41 +00:00
jruoho 27ee1d2935 Add a test case for bin/54620. 2020-06-24 09:21:43 +00:00
rin e600613d80 Add missing ./usr/share/installboot/evbmips. 2020-06-22 03:16:29 +00:00
tsutsui 378cd2ba83 Fix leading 8 spaces to a tab. 2020-06-18 16:40:08 +00:00
christos 2f0bfbf344 Rename blacklist -> blocklist 2020-06-15 01:57:29 +00:00
thorpej 4803d64731 Create a compatibility symlink panel0 -> lcdpanel0
PR port-cobalt/55009
2020-06-13 19:47:10 +00:00
thorpej deb994054d When reading in the MD MAKEDEV.conf, perform block / char major
substitutions that may be present in that file.

PR port-cobalt/55009
2020-06-13 19:46:23 +00:00
roy 3b92118080 Revert accidental part of prior 2020-06-12 14:12:20 +00:00
roy b05648aa26 Remove in-kernel handling of Router Advertisements
This is much better handled by a user-land tool.
Proposed on tech-net here:
https://mail-index.netbsd.org/tech-net/2020/04/22/msg007766.html

Note that the ioctl SIOCGIFINFO_IN6 no longer sets flags. That now
needs to be done using the pre-existing SIOCSIFINFO_FLAGS ioctl.

Compat is fully provided where it makes sense, but trying to turn on
RA handling will obviously throw an error as it no longer exists.

Note that if you use IPv6 temporary addresses, this now needs to be
turned on in dhcpcd.conf(5) rather than in sysctl.conf(5).
2020-06-12 11:04:44 +00:00
maxv 857941dbf5 Add fault(4). 2020-06-07 09:45:19 +00:00
maxv 9259199775 Register eight vHCI buses, and use separate KCOV mailboxes for them. 2020-06-05 17:20:56 +00:00
christos 252a722447 Add support for npfd_flags 2020-06-05 17:10:44 +00:00
jmcneill 0e5f6fd76c Use the default motd for stable builds 2020-06-01 01:41:40 +00:00