Commit Graph

5441 Commits

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