Commit Graph

5427 Commits

Author SHA1 Message Date
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