Commit Graph

5742 Commits

Author SHA1 Message Date
mlelstv ad07108f16 Run devpubd before volume managers and pseudo disks. 2021-07-31 14:47:04 +00:00
jmcneill 7451feb941 aarch64: Restrict KERNEL_SUFFIXES to img only 2021-07-24 17:07:59 +00:00
jmcneill 065fe7e8c6 smbios: Add character device for accessing SMBIOS tables
The /dev/smbios character device gives an aperture into physical memory
that allows read-only access to the SMBIOS header and tables.
2021-07-24 11:39:18 +00:00
ozaki-r 83b6f2d1d3 tests: add tests for ALTQ CBQ 2021-07-14 03:22:33 +00:00
tsutsui 78a0766dec Create rd3 device nodes, for HPDisk. 2021-07-09 19:01:29 +00:00
nia f3c68eb2b0 Remove uscanner(4) driver
This exists for compatibility with a Linux interface which was apparently
deprecated in Linux 2.6. There are various mailing list threads going
back to 2004 where the usefulness of this driver is discussed, but
the conclusion is that scanner software has all moved to using ugen(4)
instead, and enabling this driver will not help you scan things.
2021-06-29 10:22:33 +00:00
mlelstv b259e1d9fc run sysctl early enough. 2021-06-13 10:14:40 +00:00
joerg 53d1339bf7 Update LLVM build system for 249b40b558955afe5ac2b549edcf2d7f859c8cc9
This enables the use of modules for a significant build performance gain
when building with clang as host compiler or when using HAVE_LLVM=yes.
Switch libc++ to using the copy from the mono-repo.
2021-05-30 01:56:44 +00:00
thorpej 2d410374f0 Provide a binary/kernel/netbsd-GENERIC.QEMU.gz in the Alpha release
hierarchy.  This is identical to netbsd-GENERIC, except it has been
dbsym'd so that the kernel symbols are available when running under
Qemu (which loads the kernel directly, but does not load the symbol
table).
2021-05-29 18:48:45 +00:00
rin 759be7cf05 Switch arm64.img to big-endian for aarch64eb, as libsa/efiboot support
bi-endian FFS/disklabel now.

Many thanks to mrg@ for working on this!!
2021-05-27 08:43:02 +00:00
christos cb128adb3d use the date tool 2021-05-26 20:22:28 +00:00
yamaguchi f0101d0e08 Add a new link-aggregation pseudo interface named lagg(4)
- FreeBSD's lagg(4) based implementation
 - MP-safe and MP-scalable
2021-05-17 04:07:41 +00:00
rin 0c720f9cde Turn on constty instead of ttyE0 as done for majority of other ports
in order to make both framebuffer and serial consoles happy.

Also, change TERM from vt220 to vt100 for console and constty
in accordance with other ports.
2021-05-08 10:08:33 +00:00
mrg 3a8103109b update for libX11 1.7.0. 2021-04-27 06:51:49 +00:00
christos d25e0fedfb Handle mipsn64 2021-04-25 23:40:51 +00:00
mrg af9b7ed461 create the gcc-10 subdirs, and don't create the gcc-8 ones. 2021-04-12 02:09:27 +00:00
christos 637547d0a7 refresh with latest 2021-04-08 19:03:43 +00:00
rin 385a602eeb - Hook DHT kernel
- Add bin and ub to KERNEL_SUFFIXES
- Group and sort kernels
2021-04-02 07:08:36 +00:00
christos 5e0abed52f add named plugin dir 2021-03-31 04:58:01 +00:00
christos d80018d9b8 handle copying of plugins to the chroot 2021-03-31 04:57:25 +00:00
sborrill 4f6c3ffcd1 Need to explicitly load value of zfs variable as zfs=YES may be set in
/etc/rc.conf.d/zfs, not /etc/rc.conf.
2021-03-09 12:42:46 +00:00
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
roy cfd6163780 dhcpcd: Empty the chroot
While here, set correct optional hooks.
2020-05-31 12:58:09 +00:00
christos e4bfa5b301 Make libuv private, requested by joerg@ 2020-05-30 20:47:58 +00:00
jmcneill 210b40805c Create a separate Arm64 image that uses MBR partitioning. Amlogic SoCs
require the bootloader to be installed on SD cards at LBA1 which makes
them incompatible with GPT images.
2020-05-28 10:22:49 +00:00
christos 56e4243b76 Add libuv 2020-05-24 19:29:19 +00:00
jmcneill 04415e5e6a Set resize_gpt=NO by default 2020-05-24 14:46:19 +00:00
jmcneill 81c04f1c42 Pass TOOL_GPT to mkimage 2020-05-24 14:44:11 +00:00
jmcneill 2f6b9e52f7 Support resizing wedges 2020-05-24 14:43:19 +00:00
rin 6b1738109c Fix typo in comment: IMX21_OLINUXINO --> IMX23_OLINUXINO 2020-05-23 14:10:47 +00:00
jmcneill 79601d3674 Remove references to defunct arm and earm arches 2020-05-23 11:06:23 +00:00
jmcneill 045fafd8a7 Only build GENERIC kernel for armv7 releases. 2020-05-22 14:09:54 +00:00
jmcneill 043d88a7c1 Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.
2020-05-18 21:19:34 +00:00
nakayama e2777cd9b0 smbfs has been removed. 2020-05-13 21:34:01 +00:00
riastradh c4e3864f67 If no random seed file exists on boot, create one.
rndctl -S triggers entropy consolidation, so whatever we gathered
during kernel startup -- interrupt timings, autoconf timings, &c. --
will be incorporated into the seed and into subsequent data read from
/dev/urandom, just like if rndctl -L had run at this boot, and the
seed will carry them into the next boot too.

But it still avoids frequently consolidating entropy on any regular
schedule, in order to continue to mitigate iterative-guessing
attacks.
2020-05-07 20:01:04 +00:00
riastradh 417c0880bd Omit needless verbiage in error message. 2020-05-07 20:00:38 +00:00
riastradh 2569c9df63 Pass full pathname to df, and print warning message on failure.
No need to extract dirname; `df -P /var/db/entropy-file' and `df -l
/var/db/entropy-file' work just fine.
2020-05-07 18:15:29 +00:00
riastradh 1e65f60a58 Tweak logic to decide whether a medium is safe for an rndseed.
- Teach rndctl to load the seed, but treat it as zero entropy, if the
  medium is read-only or if the update fails.

- Teach rndctl to accept `-i' flag instructing it to ignore the
  entropy estimate in the seed.

- Teach /etc/rc.d/random_seed to:
  (a) assume nonlocal file systems are unsafe, and use -i, but
  (b) assume / is safe, even if it is nonlocal.
  If the medium is nonwritable, leave it to rndctl to detect that.
  (Could use statvfs and check for ST_LOCAL in rndctl, I guess, but I
  already implemented it this way.)

Treating nonlocal / as safe is a compromise: it's up to the operator
to secure the network for (e.g.) nfs mounts, but that's true whether
we're talking entropy or not -- if the adversary has access to the
network that you've mounted / from, they can do a lot more damage
anyway; this reduces warning fatigue for diskless systems, e.g. test
racks.
2020-05-06 18:49:26 +00:00
christos 4aa0d92fd2 Add a place for the debug modules. 2020-05-01 22:26:11 +00:00
riastradh 9062e0fce1 Don't delete the random seed before issuing `rndctl -S'.
`rndctl -S' can replace the file just fine, and deleting it ahead of
time adds a window during which we can lose the seed altogether if
the system is interrupted by a crash or power outage.

XXX pullup
2020-05-01 15:52:38 +00:00
christos 2158aa56f5 It is KERNEL_DIR 2020-04-27 01:07:27 +00:00
maxv 7ee848d944 Add tests for USER_LDT. 2020-04-19 13:22:58 +00:00
kim aae8c85b3e Add an "rtsol" keyword to ifconfig.if for enabling IPv6 RS/RA 2020-04-15 20:31:57 +00:00
christos 3dd07195ab Prevent waiting for processes to exit forever by introducing _rc_kill_ntries,
which if set, will SIGKILL the processes that did not die yet.
2020-04-05 21:03:08 +00:00
sevan 841fdb7e60 Support the use of DHCP in the install environment 2020-04-05 14:36:43 +00:00
jdolecek 1322d29b97 remove nsmb from MD list of devices to create for 'all' 2020-04-05 14:09:17 +00:00
christos ab8a9ee1de us and them, then! 2020-04-05 00:36:25 +00:00
christos d8e96a2d4f Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules.  This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.
2020-04-04 19:50:53 +00:00
jdolecek 30f38bbb3f remove nsmb(4) 2020-04-04 16:04:36 +00:00
roy e9f01a9072 Add a default dhcpcd_chrootdir 2020-04-02 13:02:05 +00:00
roy 852a3f7b05 Add chroot support for dhcpcd 2020-04-02 12:58:49 +00:00
roy d5aa3c6a01 Add _dhcpcd user and group 2020-04-02 12:35:13 +00:00
gson eacfd1aef9 Create the qemufwcfg device as part of "all". Discussed with jmcneill.
Also, include it in the list of special purpose devices.
2020-04-01 15:32:21 +00:00
christos fb9a6ed20e Add rpcapd examples 2020-03-29 17:14:13 +00:00
kim bb3ccfc179 Fix skipped daily in Eastern Europe
- Move /etc/daily from 03:15 -> 04:15
- Move /etc/weekly from 04:30 -> 05:30 (to keep the spacing)

This should prevent problems during daylight savings changeover (which
is usually between 01:00 -> 04:00, depending upon the region) where the
cronjobs may be executed twice, or never at all...

This expands on the previous fix in revision 1.13 from 1997.
2020-03-29 06:44:16 +00:00
christos 94b4b9938a remove obsolete option 2020-03-21 20:20:59 +00:00
rin 9d99da222f Fix build; add -f flag to "rm miniroot.fs" in case of its absence. 2020-03-16 09:42:04 +00:00
is 19c1568616 provide both miniroot.fs (for people wanting to install NetBSD without
more 3rdparty software than what's provided on our ISO) and .fs.tz (for
people downloading over slow links).
2020-03-14 16:27:19 +00:00
is ca70afd1bf Provide the (small) miniroot uncompressed, so that it can be used from
an AmigaOS without additional software to install NetBSD.
Closes PR port-amiga/45443
2020-03-13 10:01:07 +00:00
mgorny 5fb02e28e8 Add tests for missing libc catalog entries 2020-03-08 22:08:46 +00:00
rin 501603fb78 sun2 kernel is restricted to ~2MB due to bootloader.
It seems that working kernel should be more smaller.

Strip off most kernel options, and provide by kernel modules.
Also add GENERIC kernel for NFS root instead of FFS.
2020-03-08 06:23:18 +00:00
christos b511f17d83 Add a commented out entry for pam_u2f.so 2020-03-03 00:47:33 +00:00
christos ef038d3b4c Extra directories for fido and cbor 2020-03-03 00:42:33 +00:00
riastradh db3a54e6ae Create /dev/ipmi0 in `MAKEDEV all'.
Works on my machine with sysutils/ipmitool if the latter is built
with CONFIGURE_ARGS+= --enable-intf-open.
2020-03-02 15:49:30 +00:00
roy 5abb0d8844 mountall: Mount ZFS filesystems before fstab
This allows null mounts in fstab to reference fstab mounts.
It's highly unlikely ZFS mounts would reference anything outside of ZFS.
2020-03-01 15:22:55 +00:00
riastradh ca00c5f3fd Create some more cgd device nodes. 2020-02-27 16:59:23 +00:00
riastradh 88079b1878 If zfs=YES, unconditioally do zfs mount/unmount -a.
If you set zfs=YES, presumably you positively want the automatic rc.d
actions, so if there's no /sbin/zfs or if zfs can't find pools with
/etc/zfs/zpool.cache, presumably you would like feedback about that
in rc.log.
2020-02-23 08:53:25 +00:00
riastradh d3b9fe60e3 Allow random seed on zfs. 2020-02-23 08:53:14 +00:00
roy 536a6b742b Revert unrelated changes to prior 2020-02-22 11:55:43 +00:00
roy 68c104dbdb rc.d/network: improve wording of waiting for DAD to finish 2020-02-22 11:52:45 +00:00
kim 6ca5a47e66 Use the configured IP6ADDRCTL_CMD for stopping also. 2020-02-14 12:12:07 +00:00
kamil bc3e03d8e1 Install LLVM sanitizers to /usr/lib/clang/9.0.0
This is the proper location where clang 9.0.0 looks for them.
2020-02-07 18:48:58 +00:00
roy 01184df4dd Enable hostapd syslog support by default. 2020-02-03 09:12:53 +00:00
maya 5e031685d6 remove urio(4), a driver for the Rio500 MP3 player.
At this point it is highly unlikely this 1999 device still has users,
but it still comes up in the context of maxv's USB-fuzzing (and any device
could pretend to be a urio(4)), so it's best to get rid of it.

Renamed all major entries to obsolete, as was done in previous removals.

This still requires an update to sanitizers, but they're located in
"external", perhaps it should be first committed upstream?

Proposed on tech-kern a month ago.
2020-01-29 18:39:00 +00:00
kim 5639632747 Add NetBSD ID 2020-01-27 08:33:24 +00:00
kim b5a7b1ab14 Skip inet6 addresses that begin with fe80: (not just exact match). 2020-01-27 08:28:33 +00:00
riastradh 08a157de6e Remove filemon(4).
Discussed on tech-kern:
https://mail-index.NetBSD.org/tech-kern/2020/01/13/msg025938.html

This was never (intentionally) enabled by default, and the design has
some shortcomings.  You can get mostly the same results with ktrace,
as in usr.bin/make/filemon/filemon_ktrace.c which is now used instead
of filemon for make's meta mode.

If applications require higher performance than ktrace, or nesting
that ktrace doesn't support, we might consider adding something back
into the vfs system calls themselves, without hijacking the syscall
table.  (Might want a more reliable output format too, e.g. one that
can handle newlines in file names.)
2020-01-19 20:41:17 +00:00
jmcneill c91ab881ac Build radeon and nouveau drivers on evbarm. 2020-01-19 00:58:13 +00:00
christos 77b92099d2 Add more test directories 2020-01-17 16:09:11 +00:00
maxv 87107185b5 Revert the removal of filemon. 2019-12-23 06:45:36 +00:00
kamil c0c748b872 Remove obsolete mtree entry of usr/share/examples/supfiles 2019-12-18 14:44:16 +00:00
maxv e67f51b8f7 Retire filemon, discussed on tech-kern@. 2019-12-18 07:37:17 +00:00
sevan a8ffec0052 This script just makes sure that the ZFS module loads and unloads, mountall
script takes care of mounting filesystems.
Don't try to unmount all file systems before unloading the ZFS module, leave
that to the operator in preperation or the mountall script to take care
of. Module will of course fail to unload then if file systems are still
mounted.
2019-12-09 00:11:32 +00:00
sevan 9112ea0837 We don't need to require the presence of /etc/zfs/zpool.cache to unmount &
unload the module, just like for the start target.
2019-12-08 00:58:16 +00:00
riastradh c91905c4be Save the entropy seed daily in /etc/security. 2019-12-06 14:43:29 +00:00
sevan cb3f9ff633 Undo loading pciverbose module by default.
See item 14 in src/doc/TODO.modules.
2019-12-05 22:02:29 +00:00
sevan ffa03210f1 Make use of the pcidevs database by default. 2019-12-04 21:53:20 +00:00
jmcneill 0bd087563f Add missing rcvar=$name 2019-12-04 16:46:50 +00:00
mrg ce3aa71a56 remove no longer existing gnu/* from cdpath. 2019-12-04 08:21:50 +00:00
jmcneill aa92e84215 Attempt to load the zfs module even if /etc/zfs/zpool.cache is absent. The
module needs to be loaded to create a pool in the first place, and
autoloading won't work after the fact won't work at securelevel=1.
2019-12-01 21:00:43 +00:00
martin 9d445e0761 Document NETBSD_OFFICIAL_RELEASE and add it to /etc/release - it is
important information when trying to reproduce a build.
2019-11-22 13:30:19 +00:00
hikaru 87bee1d028 Add opencrypto driver for Intel QuickAssist. 2019-11-20 09:37:44 +00:00
mrg 61dc041bb6 build GENERIC64 only on ofppc64 (doesn't build, but a least fails
somewhat sanely, instead of trying to build the wrong things.)
2019-11-18 01:11:14 +00:00
joerg 76c7fc5f6b Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da) 2019-11-11 22:44:56 +00:00
jmcneill cd5d9e70a6 Remove commented out IGEPV2 entry 2019-11-03 12:16:35 +00:00
jmcneill 086e3ee64a Remove OVERO from build, and commented out N900 kernel config 2019-11-03 12:09:04 +00:00
martin 01e1b821a0 PR port-arm/54640: hack to work around conditional RAW_PART definition in
arm/include/disklabel.h.

Recognize this special case and skip lines between #ifndef RAW_PART and
the next #endif.
2019-11-03 12:03:35 +00:00
ozaki-r 9dfe0beae9 MAKEDEV: add entry for vio9p(4) 2019-11-01 02:58:50 +00:00
jmcneill ac5aca637c Remove BEAGLEBOARDXM from the build 2019-10-31 01:54:34 +00:00
jmcneill bacddb2697 Revert previous for now. 2019-10-30 22:31:06 +00:00
jmcneill 6815ed4e39 Remove IGEPV2 and OVERO kernels from build 2019-10-30 22:28:16 +00:00
jmcneill 69484d380d Remove BEAGLEBOARD kernel from list of kernels to build 2019-10-30 21:45:25 +00:00
jmcneill 55237118f8 Unhook BEAGLEBONE kernel from the build 2019-10-28 22:23:51 +00:00
ozaki-r 24531cce63 Allow including numbers in %XXX_chr% parameter (for upcoming vio9p driver) 2019-10-28 02:53:29 +00:00
maxv a6418236ed Add the "nvmm" group, and make nvmm_init() public. Sent to tech-kern@ a few
days ago.
2019-10-27 07:08:15 +00:00
christos 8f75e4b21c simplify more (from rudolf) 2019-10-23 14:45:38 +00:00
sevan 7a302a7da7 Update to 2019093001 2019-10-09 22:58:39 +00:00
sevan 76b3e0464f sync with latest from IANA 2019-10-09 22:42:14 +00:00
sevan 0e74c10957 No need to empose the script to be runnable during boot time, it prevents the
script from wroking if the system is booted into single user mode & then
moved onto multi-user mode.

Reported by <pgoyette> for NPF but the issue is there in PF too.
2019-10-05 22:21:29 +00:00
jhigh c7ab523edc adding full scheme comparison to libcrypt:crypt and pwhash tests 2019-10-05 18:06:16 +00:00
mrg b10b947bcc add gcc-8 dirs, remove gcc-6 dirs. 2019-10-03 01:34:31 +00:00
maya 50f7458533 Split out /rescue to its own set and adapt installers/images to add it.
This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.
2019-10-02 11:15:59 +00:00
abs 039df638d6 Switch default console tty from /dev/console to /dev/constty
With this switch processes (such as xconsole) can open /dev/console
without breaking login on the text or serial console. This can be
trivially triggered by enabling xdm in rc.conf and hitting
Ctrl+Alt+F1 or equivalent once booted.

The changes:
- Add entry for /dev/console or /dev/constty if missing
- If a port's had /dev/console 'on' switch it off and enable /dev/constty
- If a port did not have /dev/console 'on', leave /dev/constty off

Some ports had /dev/console off and /dev/ttyE0 enabled, presumably to
avoid just this issue. It may make sense to adjust these also (but not
in this pass)

As discussed on current-users
2019-09-25 23:09:19 +00:00
gson 70cbf9d7a5 Don't mix tabs and spaces 2019-09-22 13:08:10 +00:00
thorpej f4659c41ae Create the character device for spiflash, in addition to the block device.
This is needed for getdiskrawname() to DTRT (for installboot(8)).

XXX pullup-9
2019-09-19 01:44:48 +00:00
uwe c3e808d597 Use $file instead of $(echo $file). I don't think the extra round of
word expansions was really intended here.
2019-09-18 22:27:55 +00:00
nonaka da6a94293e Moved zfs out of MKX11 block.
Fix build failure without X11.
2019-09-18 05:16:15 +00:00
brad 12ea0a140d Add support for legacy ZFS filesystems, specified by mountpoint=legacy
in the ZFS properties of the dataset and a simple man page for
mount_zfs.  With this, it is possible to put ZFS filesystems in
/etc/fstab as file system type zfs.

Add a rc.d script that kicks the module ZFS load mostly before
mountall runs simular to what LVM does.  This allows for any legacy
mounts to be specified in critical_local_filesystems and allows for
ZFS pools on top of cgd (probably among other things).  Introduce a
rc.conf variable called zfs which needs to be set to YES, in the usual
manor of things, to get zvols and ZFS dataset support rather then just
assume that 'zfs mount' does that in mountall.  Fix a problem in
mountall if ZFS is not compiled into the system.
2019-09-15 19:38:08 +00:00
ryoon 2fe677174a Replace major number in MAKEDEV for vhci 2019-09-15 12:54:21 +00:00
maxv 250ccf12c0 Add vHCI, a driver which allows to send and receive USB packets directly
from userland via /dev/vhci. Using this, it becomes possible to test and
fuzz the USB stack and all the USB drivers without having the associated
hardware.

The vHCI device has four ports independently addressable.

For each xfer on each port, we create two packets: a setup packet (which
indicates mostly the type of request) and a data packet (which contains
the raw data). These packets are processed by read and write operations
on /dev/vhci: userland poll-reads it to fetch usb_device_request_t
structures, and dispatches the requests depending on bRequest and
bmRequestType.

A few ioctls are available:

	VHCI_IOC_GET_INFO   - Get the current status
	VHCI_IOC_SET_PORT   - Choose a vHCI port
	VHCI_IOC_USB_ATTACH - Attach a USB device on the current port
	VHCI_IOC_USB_DETACH - Detach the USB device on the current port

vHCI has already allowed me to automatically find several bugs in the USB
stack and its drivers.
2019-09-14 06:57:51 +00:00
kamil f3834eb55d Add LLVM sanitizers in the MKLLVM=yes build
Enable in all the supported variations for NetBSD/amd64:

 - Address Sanitizer
 - Thread Sanitizer
 - Memory Sanitizer
 - Undefined Behavior Sanitizer
 - SafeStack
 - libFuzzer
 - XRay

This change enables the features on amd64 for start.
2019-08-14 01:42:08 +00:00
rin 01a583bbb1 little bit verbose for slow machines 2019-08-09 10:05:44 +00:00
nakayama fa4c499b74 Add $_rc_subr_loaded before ". /etc/rc.subr" for speedup and consistency. 2019-08-07 19:30:00 +00:00
nakayama 8ea8ce4449 Change uname and gname to sync with etc/mtree/special.
It was missing in rev 1.195 changes.
2019-08-02 19:58:00 +00:00
martin 2d8834ad2a PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.
2019-07-31 18:35:58 +00:00
gdt e08f564969 MAKEDEV.tmpl: Create nodes for 16 USB hubs
As proposed on current-users, but with better formatting.
2019-07-29 17:53:20 +00:00
rin a4c04eec88 Build and install WSFB and WSFBSBC. 2019-07-26 11:38:21 +00:00
wiz 7cf3371d55 Move bcm43xx firmware back to /usr/libdata/firmware.
On popular request.
2019-07-24 06:53:42 +00:00
msaitoh 532016140e Fix typo in comment (s/partion/partition/). 2019-07-24 02:37:17 +00:00
wiz d3d2abdc28 Move bcm43xx to /libdata/firmware, where all the other firmwares live.
Deprecate /usr/libdata/firmware.
2019-07-22 14:47:51 +00:00
maya 4bc990b409 Create up to pci19.
We probably don't need more than one pci file, but the code needs to be
changed for it, which might introduce problems, and we're just before a
branch.

Not needed for evbarm because it uses devpubd by default.

Stopgap fix for PR xsrc/54388.
2019-07-21 11:14:18 +00:00
wiz c4e128da50 Install the nouveau gm206 firmware as used by my graphics card.
Also add the other gm20x nouveau firmwares to the source tree
to make it easier to add them for someone who can test them.

Installed if MKNOUVEAUFIRMWARE is set to 'yes'.
This defaults to no except on amd64 and i386 (like for radeon).
2019-07-20 19:09:21 +00:00
mrg 175feda3cc add all the arm subdirs explicitly. the mtree vs dist strikes again. 2019-07-09 22:23:48 +00:00
christos c43d42511d - sync with latest from iana
- add ttcp
2019-06-15 15:22:56 +00:00
christos 6de0d49aae Fix aarch64 2019-06-13 20:54:04 +00:00
thorpej f227db01e6 Include armv4 for "earm", not just "earmv4". 2019-06-02 17:13:15 +00:00
nia de9162c0be Raise the number of uhid nodes from 4 to 16.
My keyboard and mouse use multiple device nodes each. I can't use
any other devices once they're attached. With my keyboard, mouse,
and two game controllers attached, a total of 9 nodes are required.

Particularly, high-end keyboards with N-key rollover support require
more device nodes, since they pretend to be multiple keyboards to work
around limitations in the uhid compat spec.

My original intention was to raise it from 4 to 12, but martin
suggested increasing it to 16.

"somewhat insane, but so is reality" - mlelstv
2019-05-31 13:15:00 +00:00
maxv 16da3daa40 http -> https 2019-05-28 18:25:23 +00:00
mlelstv b1f23fc946 Add experimental userland interface to IPMI driver. Currently, transactions
(like sensor readout) are locked, so that a userland program may interfere with
envsys operation.

To use this you need a program like ipmitool built with OpenIPMI support.
2019-05-18 08:38:00 +00:00
skrll 2c9023a65e Switch the kernel7.img RaspberryPi kernel in the armv7 image to GENERIC
and thus reducing the number of kernels built in an evbarmv7 release.
2019-05-18 07:33:10 +00:00
nakayama 8f5eb157ac Specify PID file to properly rotate npf log file. 2019-05-16 20:12:35 +00:00
maxv 0323b962b3 Remove comment, since there is no parsing anymore. 2019-05-13 18:53:10 +00:00
kre 480c945f6e I should know better! Don't rely upon the way the shell implements
pipes.   Skip the "error" printf from GetSmtId() as there is no easy
portable way to avoid it occurring (there are complicated ways) - but
we don't need it, there is no logical difference between "error" and ""
so just use the latter (if we get an ID, good, if there is nothing, then
there is none - saying 'error' does not mean anything.)
2019-05-12 11:55:47 +00:00
kre 6ae1c84105 No change... Previous log message should have said:
Install rc.d/smtoff
2019-05-12 01:50:14 +00:00
kre 6aaf09f01b revert previous. somehowI failedto see that was already done. 2019-05-12 01:45:25 +00:00
kre 1aa98bd080 install rc.d 2019-05-12 01:33:47 +00:00
kre 7476299781 Restructure code a little.
Use quoting everywhere possibly useful (always the right way, except
in the few cases where it is wrong...)

Avoid using cut & grep (from /usr/bin) so script could run before /usr
is mounted (pity cpuctl is in /usr/sbin ...).

Use sysctl -n rather than attempting to parse its output.
2019-05-12 00:24:03 +00:00
maxv 907a706c0b Add smtoff, an rc.d script that disables Simultaneous Multi-Threading. It
parses the output of cpuctl, and executes "cpuctl offline" for each CPU
that has SmtID!=0.

The default is "smtoff=NO", which means that SMT remains enabled.
2019-05-11 19:31:03 +00:00
thorpej 02d67d1066 Add installboot(8) support for evbarm (and, in the future, other evb*)
boards that use u-boot.  A known board database lists boards and their
respective u-boot packages.  u-boot packages are discovered at run-time
(in /usr/pkg/share/u-boot, by default).  These packages contain board
database overlays that describe u-boot installation procedure that's
specific for that board.

Support this as a native tool and as a host tool.  The native tool
will attempt to determine the running board type using OpenFirmware
calls.  Host tool and native tool alike may also specify a board type
directly using the "-o board=xxx option" or have installboot(8) determine
the board type from a device tree blob using "-o dtb=/path/to/board.dtb".
A "-o media=xxx" option is provided for boards that have different u-boot
binaries and/or installation procedures for different media types (e.g.
SDMMC, eMMC, or USB).

This is trivial to extend to other evb* platforms that use u-boot, even if
they don't use FDT for autoconfiguration.
2019-05-07 05:02:41 +00:00
mrg a98d0fefaa capture /etc/route.conf in /var/backups. 2019-05-04 08:26:51 +00:00
roy b312a806c1 Fix build, install wsmoused 2019-04-25 11:21:34 +00:00