1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 15:23:33 +02:00
Commit Graph

5719 Commits

Author SHA1 Message Date
deraadt 073f8cc69d the relink binaries are always a .tar file. scan for them using
find, rather than having to list them.  This will make it easier
to add new ones.
help from jsg
2026-05-26 14:11:53 +00:00
tb 3dad08fee1 bump datasize of the build user to 2.5G on 64-bit arches
The tight limit of 2176M for other 64-bit architectures was not enough for
sparc64. On 64-bit systems we can afford to be a bit more generous.
login.conf merges are always a bit fiddly.

ok jca sthen
2026-05-24 15:47:39 +00:00
tb 397a64f81c llvm-tblgen with llvm22 on riscv64 requires 3072M
from jca
2026-05-24 15:43:32 +00:00
kirill bdb08c3302 usr.sbin/relayd: support multiple resolveble addresses.
relayd supports interface name, DNS hostname or interface group at
listen on but it binds only to the first discovered IP address which is
usually IPv4.

Here I changed parser to create a dedicated listener for each discovered
and confiugred on a local inerface address.

This means that listen on egress port 80 binds to all IPv4 and IPv6
addresses on the egress group.

OK: rsadowski@
2026-05-17 09:11:01 +00:00
robert 942dcce546 bump datasize to 2176M for the build class in prep for llvm22
ok deraadt@
2026-05-15 15:31:32 +00:00
sthen dc53c6556c ospf6d doesn't do reload, so don't allow rcctl reload to be accepted
ok phessler
2026-03-17 14:27:25 +00:00
job 7210d95da7 Add new AFRINIC ASN block
per https://mail.lacnic.net/pipermail/lacnog/2026-March/010239.html

While there, merge ranges.

OK tb@
2026-03-11 21:46:36 +00:00
deraadt 4223b0707c move to 7.9-beta 2026-03-11 02:27:20 +00:00
kn 666b00faca hoist OPTIND reset from rc.d(8) services to rc.subr(8)
See unbound r1.10 and r.11 for context;  in base only unbound and spamlogd
use getopts and the problem is in rc.subr's getopts, parsing options when
the service script is used directly:  /etc/rc.d/unbound [-dqf] ...

Reset getopts in rc.subr once for anything that comes afterwards instead of
in every script using it.

'rcctl [-dqf] ...' and netstart are not affected as they run rc.subr in its
own process and use FUNCS_ONLY=1, respectively.

tested by obsd@mulh.net
OK aja
2025-12-06 11:04:45 +00:00
kn 21ed568f8a Reset getopts to decouple rcctl and daemon_flags; from obsd@mulh.net; OK sthen
ksh(1)'s OPTIND is global and only saved/restored for `function' style functions.

That means passing, e.g. -d to rcctl(8) would leave OPTIND=2 for rc_pre() in
rc.subr(8) scripts using getopts, thus starting (continuing, really) parsing
options at the second argument.
2025-11-29 10:44:46 +00:00
matthieu 1d99a898d9 Remove fontconfig-devel, now empty. 2025-11-23 13:50:06 +00:00
tb 6bd85a25e4 lacnic.constraints: allow 274845-275868
Per https://www.mail-archive.com/apops@apops.net/msg02648.html
and https://www.iana.org/assignments/as-numbers/as-numbers.xhtml

tweaked version of a diff by/ok job
2025-11-23 00:29:18 +00:00
deraadt 54f5a96e9c sync 2025-11-19 17:49:59 +00:00
deraadt 1ad762df97 Pick up MAKEDEV_PARTITIONS from the environment to replace the sysctl
maxpartitions value.  It is expected things using this will set it to 16,
and it creates less inodes for the disk entries.
This is intentionally not documented since only a few install media need
this, and use of it is discouraged.
ok visa
2025-11-19 17:49:42 +00:00
deraadt fa46756e2a sync 2025-11-17 14:22:39 +00:00
deraadt 16dd2f2099 redodisks was using find+sed, but we need this to work when /usr isn't
mounted.  naddy and i both wrote sh-only solutions but his is better.
2025-11-17 14:22:24 +00:00
deraadt 9fd6986fa3 sync 2025-11-16 13:48:40 +00:00
deraadt a0f12d5dfa Only make nodes for extra partitions if an architecture has crossed over
to 52.  That will happen to most or all architectures, but we don't
need to so yet.
I'm also considering adding a environment-variable knob to be used on
a single MAKEDEV run which wants to avoid the extra node creations,
as a way to help out some tight install media (only a few of those)
2025-11-16 13:48:21 +00:00
kn 59cee6408d apply unbound's new getopts approach to replace ugly sed(1) one-liner
OK sthen
2025-11-16 13:29:02 +00:00
kn 867885ae40 Support non-default config file paths (e.g. for multiple instances)
A differing -c argument breaks rc_pre()'s assumption about it;
the trust anchor file is equally hard coded, possibly not matching.
Use ksh(1)'s getopts to peek into daemon_flags use that if found.

Report and initial diff from obsd@mulh.net on bugs@
tweaks kn
OK sthen
2025-11-16 13:27:50 +00:00
deraadt e0abb6dd1c sync 2025-11-14 14:02:19 +00:00
deraadt ce2487ca3c the partition multiplier is now always 64; ok krw 2025-11-14 14:02:01 +00:00
jca 2c4f7bac00 Implement XDG_RUNTIME_DIR support through setusercontext(LOGIN_SETXDGENV)
If LOGIN_SETXDGENV is passed in the flags, ensure the presence and
usability of a runtime directory dedicated to <uid>. Set the
XDG_RUNTIME_DIR variable only if the directory is usable.

With feedback from deraadt@, matthieu@ and guenther@.
ok deraadt@ robert@
2025-11-14 10:08:10 +00:00
deraadt 3db0bc7475 please commit generated files afterwards 2025-11-12 12:13:40 +00:00
hshoexer b58f9cbc22 vmboot: A tiny kernel for booting SEV VMs
When using SEV-enabled VMs, we let vmd(8) launch the kernel directly.
With this, we do not have to trust a firmware like OVMF.  However,
with this approach, sysupgrade(8) can not be used as the kernel
resides outside the VM in the host file system.  Thus maintainig
SEV-enabled VMs is hard.

With vmboot, we use a small ramdisk kernel that runs the actual
kernel using the kexec facility.  vmboot can be launched directly
by vmd(8).  The actual kernel is loaded from the disk image of the
SEV-enabled VM.  With this, sysupgrade(8) can be used, and there
is no need for additional firmware.

This approach is similar to vmboot for powerpc64 and octeon.

Discussed with bluhm@ for a while.

ok mlarkin@
2025-11-12 11:34:36 +00:00
naddy a7edf25a2c add 8.0 packages key 2025-10-25 19:39:43 +00:00
robert 11069bc47f add 8.0 syspatch key 2025-10-24 10:06:39 +00:00
sthen 6cdaebff99 add 8.0 fw key 2025-10-23 14:41:08 +00:00
deraadt 3ead09f415 add 80 base key 2025-10-23 14:32:26 +00:00
deraadt e2bc601d28 libexec/security is sensitive to the rebuilding of /dev/{r,}rootdev at
boot -- noticed by landry.
Rewrite the script to only rebuild these device nodes if they have changed.
with help from kn
2025-10-21 15:55:35 +00:00
deraadt bbf286a9de sync 2025-10-15 17:53:55 +00:00
deraadt 01fd3bcba5 Oops, in the maxpartitions=52 case, the correct multiplier is 64
Noticed by krw and myself at the same time
2025-10-15 17:53:36 +00:00
deraadt f63d007a93 Oops, in the maxpartitions=52 case, the correct multiplier is 64
Noticed by krw and myself at the same time
2025-10-15 17:53:23 +00:00
deraadt d18d420901 sync to 52-partition support in MAKEDEV.mi / MAKEDEV.common 2025-10-15 00:26:51 +00:00
deraadt 377980d8ee Collect sysctl kern.maxpartitions into MAXPARTITIONS variable early on
Then use this in MAKEDEV.common and MAKEDEV.mi for various places to
create the right number of partitions (a-p or a-zA-Z) as required.
reviewed mostly by krw and sthen
There could still be some glitches.  This is being done step by step,
because I hope to cross some architectures at different times because
some of them have "emulated disklabels" which could be tricky.
2025-10-15 00:24:40 +00:00
landry cee98c9d9a etc/mtree/special: drop resolv.conf.tail line
i think we lost support for this file when we moved to dhcpleased.
2025-10-12 15:48:32 +00:00
dtucker d388a61096 Import regenerate moduli. 2025-10-11 23:39:14 +00:00
deraadt ae814b404f sync 2025-09-30 23:34:21 +00:00
deraadt 9a9b5ec7f0 the MAKEDEV m4 stuff is frustratingly complicated 2025-09-30 23:33:59 +00:00
deraadt 2a481b37bd Create a MAKEDEV.8 man page chunk for the redodisks option
Some help from afresh1
2025-09-29 01:00:14 +00:00
deraadt 44e7569214 sync 2025-09-28 22:35:07 +00:00
deraadt b6e5b12c8e Create the 'MAKEDEV redodisks' target, which will (re)build partitions
for all disks which currently have a block '*a' partition.  We don't
need this quite yet, but having it ahead of time in 7.8 might help
someone when we do transition during 7.8-current.
ok krw
2025-09-28 22:31:21 +00:00
sthen 0ffe623c4b The nixspam spam-sources list was decommisioned in January and now
returns false positives in an attempt to encourage users to deconfigure
it. As this was the only list in the default spamd.conf, and the linked
wikipedia page that used to show other lists was removed in April 2024,
the default spamd.conf doesn't really seem useful any more, so remove it.

Pointed out by Peter Hansteen.  ok phessler@
2025-09-28 12:30:49 +00:00
deraadt 3aa8516d07 maxpartitions is currently 16, but we will be increasing it soon. When that
happens, the first device nodes for the "first drive" of a family (sd or wd or
whatever) remain the same, but higher ones change in inconvenient ways, which
affects the root partition.  This change creates /dev/root and /dev/rroot nodes
which match the FUTURE dev_t layout, so that a user can fix their machine.
We think this cross-over is going to be transparent for sysupgrade users, and
users who build will have a good scheme for manual repair.
ok krw kettenis florian
2025-09-17 10:13:15 +00:00
tb 6590e5ed9b fix dow 2025-09-11 00:39:36 +00:00
deraadt ca6cf18cc1 crank to 7.8-beta 2025-09-10 16:00:04 +00:00
job a9e9056448 Remove the buypass example as they cease free ACME DV certification services
OK florian@ millert@
2025-08-18 15:51:57 +00:00
ajacoutot 7808c09ed1 Add savecore_flags to the allowed keys; for consistency. 2025-08-16 10:23:45 +00:00
ajacoutot 4018421dd0 Make "quiet" mode *not* quiet on error.
ok landry@
2025-08-15 11:35:18 +00:00
kn 6363eb3209 Printe IPv6 route commands under -n again
Regression fix for r1.225 from 2022:  dry-run mode wouldn't show how IPv6
routes are set up since I accidentially skipped the entire ip6routes() call,
although the function itself already handles -n aka. PRINT_ONLY.

OK deraadt
2025-08-13 16:36:10 +00:00