Commit Graph

17217 Commits

Author SHA1 Message Date
christos 9b4d9e4e15 bump bind libraries 2022-09-23 12:19:18 +00:00
ozaki-r 3761620b42 tcp: separate syn cache stuffs into tcp_syncache.[ch] files
No functional change.
2022-09-20 07:19:14 +00:00
mrg 8c9c14a2c1 add missing showfont(1). remove obsolete comment. 2022-09-11 05:54:00 +00:00
rillig 6c89b5e2d3 distrib/sets: remove more extra keywords from obsolete entries
Found by fmt-list.
2022-09-10 16:03:43 +00:00
rillig d267a17955 distrib/sets: remove duplicate entries 2022-09-10 15:54:11 +00:00
rillig c5d7b85fc8 distrib/sets: remove duplicate lines in comp package 2022-09-10 15:50:57 +00:00
rillig a4fe786631 distrib/sets: remove extra keywords for obsolete files
They were ignored when building the distribution, but fmt-list
complained about them.
2022-09-10 15:45:02 +00:00
rillig 928bf40d6e distrib/sets/sets.subr: fix typo in comment 2022-09-10 12:31:42 +00:00
wiz ab1d953c71 grep: when -r is used, but no path argument provided, search the current dir
As discussed on tech-userlevel.
2022-09-09 22:14:28 +00:00
rillig 5afb8d05a5 distrib/sets/sets.subr: remove trailing whitespace 2022-09-08 05:26:34 +00:00
rillig 9ef29268a6 distrib/sets: remove trailing empty lines 2022-09-08 05:16:45 +00:00
rillig ba6367b404 distrib/sets: fix typo in comment 2022-09-08 05:16:20 +00:00
rillig f6315b462e distrib/sets/fmt-list: clean up string formatting
No functional change.
2022-09-08 05:05:08 +00:00
martin 855dd252b4 Comment out emuxki here for now - I don't think they belong here and
something else(tm) is wrong with the setup anyway, so better fix the build
for now and leave cleanup to somebody else.
2022-09-07 11:37:25 +00:00
khorben 347306b26e emuxki(4): allow building as a module
Tested on NetBSD/amd64 with a Sound Blaster Live! Value (CT4870)

Note that this required setting outputs.master to the maximum value
allowed (255) to get sound out, and then cranking the volume pretty
high.

Additional sound cards sponsored by the NetBSD Foundation; thanks!
2022-09-07 00:29:23 +00:00
phx 78422e2eab Update loadbsd source and distribution binary to version 3.2.
Including the following changes by Gunther Nikl:
- Added detection of A600.
- Fix handling of multiple -n options.
Make it compile with recent AmigaOS gcc ports (for example gcc6), as
older ports no longer work with current NetBSD header files.
2022-09-06 17:50:18 +00:00
thorpej 221afdb85b Document the pktqueue interface. 2022-09-04 21:37:50 +00:00
thorpej a2e7052758 Sort. 2022-09-04 20:06:26 +00:00
rillig eaa6b09061 tests/make: remove nonexistent file from file list
The file had been added accidentally, it never existed in distdir.
2022-09-03 03:33:37 +00:00
thorpej 6ffff4f242 Garbage-collect the remaining vestiges of netisr. 2022-09-03 02:47:59 +00:00
sjg cb2c55cb6a Enable make/unit-tests/directive-for-break
Also ensure MAKE_VERSION is ignored.
2022-09-02 18:54:25 +00:00
tsutsui 6baa9127b6 Avoid more obsolescent binary primaries not supported by crunched test(1).
See PR/54835 and PR/56983 for details.
2022-08-28 12:44:00 +00:00
christos aa52e7fbf7 fix sets 2022-08-28 07:30:41 +00:00
dholland a611fd1e16 Attach tradcpp to the build. 2022-08-27 21:53:38 +00:00
christos 5dd94c5e95 Add sincos{,f,l} from FreeBSD 2022-08-27 08:31:58 +00:00
lukem dac6dcb8de Deprecate extsrc/, EXTSRCSRCDIR, MKEXTSRC
Remove support for building extsrc/:
1. Makefile: remove do-extsrc target.
2. build.sh: remove options -y and -Y extsrcdir.
3. distrib/sets: remove support for extsrc in various tools
   including the options -L ext and -y, and the extsrc sets.
4. doc/BUILDING.mdoc: remove docs for extsrc/, EXTSRCSRCDIR, MKEXTSRC (etc)
5. bsd.own.mk and various Makefiles: remove support for extsrc/,
   EXTSRCSRCDIR, MKEXTSRC.

As proposed on tech-kern and tech-userlevel on 2022-01-07
and followed up on 2022-08-21.
2022-08-21 07:10:03 +00:00
tsutsui f4c6ab5a8c Fix yet another "[: SMALL test, no fallback usage" error on installation.
The same problem as PR/54835 of the miniroot scripts, i.e.
avoid and replace use of -o binary primary marked obsolescent
by POSIX.1-2017:
 https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_12
8_16

Noticed on installation of NetBSD 9.3 on TT030, and
maybe should be pulled up to netbsd-9.
2022-08-20 20:50:41 +00:00
kre ed6340463e Add Europe/Kyiv to the sets list - fix the builds. Apologies... 2022-08-17 14:03:05 +00:00
riastradh cc725e3507 viocon(4): New virtio tty driver imported from OpenBSD.
viocon* at virtio?

/dev/ttyVI??

Tested under qemu with:

qemu-system-aarch64 ... \
  -device virtio-serial \
  -chardev socket,path=/tmp/ttyVI00,server=on,wait=off,id=ttyVI00 \
  -device virtconsole,chardev=ttyVI00,name=org.NetBSD.dev.ttyVI00 \
  ...

I updated MAKEDEV.conf to create /dev/ttyVI?? on all ports where it
looks likely to work based on:
(a) having pci or a non-pci virtio attachment,
(b) `qemu-system-$ARCH -M ?' mentioned something resembling the port,
    and
(c) `qemu-system-$ARCH -device virtio-serial' launched without
    complaining about the virtio-serial device.

(Criterion (c) excluded sparc and sparc64.)
2022-08-12 11:15:40 +00:00
riastradh 920e28df65 cgdconfig(8): Add support for shared keys.
New clause `shared <id> algorithm <alg> subkey <info>' in a keygen
block enables `cgdconfig -C' to reuse a key between different params
files, so you can, e.g., use a single password for multiple disks.
This is better than simply caching the password itself because:

- Hashing the password is expensive, so it should only be done once.

  Suppose your budget is time t before you get bored, and you
  calibrate password hash parameters to unlock n disks before you get
  bored waiting for `cgdconfig -C'.

  . With n password hashings the adversary's cost goes up only by a
    factor of t/n.
  . With one password hashing and n subkeys the adversary's cost goes
    up by a factor of n.

  And if you ever add a disk, rehashing it will make `cgdconfig -C'
  go over budget, whereas another subkey adds negligible cost to you.

- Subkeys work for other types of keygen blocks, like shell_cmd,
  which could be used to get a key from a hardware token that needs a
  button press.

The <info> parameter must be different for each params file;
everything else in the keygen block must be the same.  With this
clause, the keygen block determines a shared key used only to derive
keys; the actual key used by cgdconfig is derived from the shared key
by the specified algorithm.

The only supported algorithm is hkdf-hmac-sha256, which uses
HKDF-Expand of RFC 5869 instantiated with SHA-256.

Example:

	algorithm aes-cbc;
	iv-method encblkno1;
	keylength 128;
	verify_method none;
	keygen pkcs5_pbkdf2/sha1 {
		iterations 39361;
		salt AAAAgMoHiYonye6KogdYJAobCHE=;
		shared "pw" algorithm hkdf-hmac-sha256
		    subkey AAAAgFlw0BMQ5gY+haYkZ6JC+yY=;
	};

The key used for this disk will be derived by

	HKDF-HMAC-SHA256_k(WXDQExDmBj6FpiRnokL7Jg==),

where k is the outcome of PBKDF2-SHA1 with the given parameters.

Note that <info> encodes a four-byte prefix giving the big-endian
length in bits of the info argument to HKDF, just like all other bit
strings in cgdconfig parameters files.

If you have multiple disks configured using the same keygen block
except for the info parameter, `cgdconfig -C' will only prompt once
for your passphrase, generate a shared key k with PBKDF2 as usual,
and then reuse it for each of the disks.
2022-08-12 10:49:17 +00:00
riastradh a7c16118d0 cgdconfig(8): New -t operation just prints the derived key in base64.
For testing purposes.
2022-08-12 10:48:27 +00:00
mrg a14297961e install new xorgproto files. 2022-08-12 07:35:55 +00:00
riastradh 5c23615bdf i915: Restore non-obsolete set list entries. 2022-08-05 08:48:36 +00:00
mlelstv d2698c432d Move libisns to /lib to allow /sbin/iscsid to work without /usr being
mounted.
2022-07-31 12:40:35 +00:00
pgoyette d4dfd05175 The new drm modules made the image file grow again! Bump the size
limit a bit.

XXX Other $ARCH might also need this.
2022-07-30 00:55:38 +00:00
riastradh 709f669d54 drm: Hook up the drmkms modules to the build. 2022-07-28 22:00:23 +00:00
martin 116a16e639 Revert editor mishap in r1.10 2022-07-28 16:45:31 +00:00
pgoyette 9781142f34 And, we're not ready for 10.0 yet, so remove a couple premature lines!
Thanks, Rin!
2022-07-28 00:33:57 +00:00
pgoyette a5b39220d5 remove duplicate entry and blank line that crept in from somewhere. 2022-07-28 00:14:40 +00:00
pgoyette 277dad01a2 Oopppss, /usr has no `e' :) 2022-07-27 20:34:30 +00:00
pgoyette b61ea6bcac Include debug files for new amdgpu modules 2022-07-27 20:28:41 +00:00
maya 895e74fe94 Enable amdgpu module & firmware on x86
Make it easier to test this one out, add `load amdgpu` before boot netbsd.

XXX there should probably be a drm block in sys/modules/Makefile which
includes aarch64.
2022-07-27 18:29:35 +00:00
wiz 5bea87492d Build and install pkgconfig files for liblzma and libarchive 2022-07-22 15:43:36 +00:00
kre fa7d65a3b6 Add ATF tests for realpath(1)
Note that realpath can act differently for root than for other users
(where an ordinary user will see EACCESS root just barrels right through).

The tests adapt themselves, when run as root, less error cases can be
tested than when run as some other user.
2022-07-21 09:52:48 +00:00
mrg 309ada3c2c properly mark glint_drv.so.1.debug obsolete 2022-07-17 05:51:29 +00:00
mrg 98b26dcb38 s3 driver is not available here either. 2022-07-16 19:46:50 +00:00
mrg fc58e94d8e revert part of the previous - sgimips is still default to xorg-server 1.10. 2022-07-15 18:58:09 +00:00
mrg ef2fc67d8d properly mark glint_drv has obsolete. 2022-07-15 11:34:59 +00:00
mrg 00aa3b9410 fix some builds (no longer built drivers.) 2022-07-15 10:44:21 +00:00
mrg 5b643e9ab6 properly mark an obsolete file obsolete. 2022-07-15 05:11:14 +00:00