summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-11-04With the move of SNMPv2-SMI::snmpV2 into application_internal.c, it's noMartijn van Duren
longer possible to register objects underneath this region. This effectively made a few snmp(1) regress tests unusable, which essentially don't belong here. Simply remove these tests.
2023-11-04Move SNMPv2-MIB::system from mib.c into the new application_internal.c.Martijn van Duren
This was the last consumer of mib.c, so send it to the great bitbucket in the sky. This move removes the sysORTable, but it was basically non-functioning anyway and removal of previous entries from the table didn't caused any fallout that reached my ears. I hope to add proper sysORTable/agent-capabilities support, which is compatible with AgentX's {Add,Remove}AgentCaps, soon. OK tb@
2023-11-04Move SNMPv2-SMI::snmpV2 from mib.c into the new application_internal.cMartijn van Duren
OK tb@
2023-11-04Move SNMPv2-MIB::snmp from mib.c into the new application_internal.cMartijn van Duren
OK tb@
2023-11-04Introduce application_internal.c. This backend is meant to replaceMartijn van Duren
application_legacy.c, mps.c, and mib.c. This commit just introduces the backend. The existing MIBs inside mib.c will be copied over in subsequent commits. OK tb@
2023-11-03Check if a signal already has been received before entering a blockingAnton Lindqvist
read as opposed of only doing it afterwards. Issue uncovered by the mail regress tests. With claudio@ and ok millert@
2023-11-03timeout(1): align execvp(3) failure statuses with GNU timeoutScott Soule Cheloha
Align our exit statuses with those of GNU timeout in the execvp(3) failure case. Exit with 127 if the utility is not found. Exit with 126 if we cannot execute the utility for any other reason. While here, the child should _exit(2) instead of calling exit(3) via err(3). Update the manpage accordingly. With input from millert@ and deraadt@. Link: https://marc.info/?l=openbsd-tech&m=169739592322978&w=2 ok millert@
2023-11-03typo: ignorning -> ignoringTheo Buehler
From Laurie Tratt, ok florian
2023-11-03Make netcat tests less flaky by ensuring the server has terminated beforeAnton Lindqvist
examining the outcome. ok bluhm@
2023-11-03initialize `format' earlierOmar Polo
It's easier to see that it's never used un-initialized. ok tb@
2023-11-03cast tv_usec to long for *printfOmar Polo
mostly for -portable; on darwin suseconds_t is an int. ok tb@
2023-11-03Be explicit in saying what a shell pattern is.Marc Espie
I'm not a big fan of idiosyncratic lua patterns, especially in that context, but pointing towards them and not mentionning glob(7) is thoroughly confusing. Don't push lua patterns down people throats ! At least you know what the incredibly fuzzy "shell patterns" refers to now ! okay millert@, jmc@
2023-11-03vmd(8): fix block size calculation for vioscsi devices.Dave Voutila
During the multi-process rework, I changed the way disk sizes are calculated, switching to storing bytes and not 512-byte blocks. The size calculation from reading an iso did not receive the change in scaling, resulting in the virtio scsi emulation to think iso's are larger than reality. This fixes booting the latest Ubuntu amd64 iso's as apparently there's some program that tries to arbitrarily read the tail end of the iso into memory. ok mlarkin@
2023-11-03drm/dp_mst: Fix NULL deref in get_mst_branch_device_by_guid_helper()Jonathan Gray
From Lukasz Majczak 6c668e2f338bde76279aeaf4d4c035c4196a479b in linux-6.1.y/6.1.61 3d887d512494d678b17c57b835c32f4e48d34f26 in mainline linux
2023-11-03drm/amd: Disable ASPM for VI w/ all Intel systemsJonathan Gray
From Mario Limonciello 024251bab25daf97a3599c985dd04117b9c60d6b in linux-6.1.y/6.1.61 64ffd2f1d00c6235dabe9704bbb0d9ce3e28147f in mainline linux
2023-11-03drm/i915/pmu: Check if pmu is closed before stopping eventJonathan Gray
From Umesh Nerlige Ramappa eded5f5261b8ff14417f9441934a1865b379b7db in linux-6.1.y/6.1.61 4cbed7702eb775cca22fff6827a549092cb59f61 in mainline linux
2023-11-02Use pfctl_fopen (which checks to ensure the given file isn't a directory)Stuart Henderson
for pfctl -f /path/to/pf.conf. Otherwise, if you accidentally use a dir instead of a file (e.g. if you have an /etc/pf directory and don't notice the name when tab-completing), you successfully install an empty ruleset. ok sashan@
2023-11-02Fix a few bizarre line wraps in x509.hTheo Buehler
2023-11-02mention codeberg and kde templates on bsd.port.mk(5) DIST_TUPLEPaco Esteban
ok op@ +1 rsadowski
2023-11-02next-prompt can have 1 argument.Nicholas Marriott
2023-11-01Use X509_ALGOR_set0_by_nid() in X509_ALGOR_set_evp_md()Theo Buehler
ok jsing
2023-11-01Add X509_ALGOR_set0_by_nid()Theo Buehler
X509_ALGOR_set0() is annoyingly unergonomic since it takes an ASN1_OBJECT rather than a nid. This means that almost all callers call OBJ_obj2nid() and they often do this inline without error checking so that the resulting X509_ALGOR object is corrupted and may lead to incorrect encodings. Provide an internal alternative X509_ALGOR_set0_by_nid() that takes a nid instead of an ASN1_OBJECT and performs proper error checking. This will be used to convert callers of X509_ALGOR_set0() in the library. ok jsing
2023-11-01Explain the weird order of doing things in X509_ALGOR_set0()Theo Buehler
2023-11-01Rename ptype and pval to parameter_type and parameter_valueTheo Buehler
ok jsing
2023-11-01Unindent X509_ALGOR_set0_parameter()Theo Buehler
ok jsing
2023-11-01Split X509_ALGOR_set0_parameter() out of X509_ALGOR_set0()Theo Buehler
ok jsing
2023-11-01Split X509_ALGOR_set0_obj() out of X509_ALGOR_set0()Theo Buehler
ok jsing
2023-11-01Specify ssh binary to use instead of relying on installed one. FixesDarren Tucker
test failures in -portable when running tests prior to installation.
2023-11-01add some tests of forced commands overriding Subsystem directivesDamien Miller
2023-10-31cksum: better describe the -c (checklist) optionTodd C. Miller
The -c option can handle entries in normal (BSD) and reverse (GNU) format. Both hex and base64 entries are supported. OK jmc@
2023-10-31cksum -c: support checking base64 digests in reverse mode too.Todd C. Miller
In reverse mode, the entry does not include the digest algorithm so the specified algorithm (or the default) is used when checking. OK deraadt@
2023-10-31Remove 3 expected failures those got fixed in the regress code.Claudio Jeker
2023-10-31unlink("/") just needs to error. Checking for a specific errno makesClaudio Jeker
little sense here since there are multiple possible errnos that could be returned. On OpenBSD this returns EISDIR and not EBUSY. OK mbuhl@ millert@
2023-10-31When creating a file in a directory the file gid is inherited fromClaudio Jeker
the directory and so checking against getgid() makes no sense. OK mbuhl@ millert@
2023-10-31Ignore closefrom() failure. This fails normally since fd 4 and up are allClaudio Jeker
closed. OK mbuhl@ millert@
2023-10-31remove unneeded includesJonathan Gray
ok deraadt@
2023-10-31Don't try to use sudo inside sshd log wrapper. We still need toDarren Tucker
check if we're using sudo since we don't want to chown unecessarily, as on some platforms this causes an error which pollutes stderr. We also don't want to unnecessarily invoke sudo, since it's running in the context of the proxycommand, on *other* platforms it may not be able to authenticate, and if we're using SUDO then it should already be privileged.
2023-10-31Only try to chmod logfile if we have sudo. If we don't have sudoDarren Tucker
then we won't need to chmod.
2023-10-31Update awk to Oct 30, 2023 version.Todd C. Miller
This is really just a version number bump as we already have the fixes committed.
2023-10-30move PKCS#11 setup code to test-exec.sh so it can be reused elsewhereDamien Miller
2023-10-30This is the OpenBSD version of Awk.Todd C. Miller
2023-10-30Minor cosmetic changes to make our awk match my github branch.Todd C. Miller
2023-10-30tidy and refactor PKCS#11 setup codeDamien Miller
Replace the use of a perl script to delete the controlling TTY with a SSH_ASKPASS script to directly load the PIN. Move PKCS#11 setup code to functions in anticipation of it being used elsewhere in additional tests. Reduce stdout spam
2023-10-30Add support for OpenSSL 3.1 interop testsTheo Buehler
Until OpenSSL 3.1 has replaced OpenSSL 3.0 on most architectures, run both tests. Installed packages of OpenSSL 3.0 will update automatically to 3.1, so regress runners should not need to do anything.
2023-10-30Include strings.h for the strncasecmp() prototype.Todd C. Miller
From upstream.
2023-10-30Do not allow combined UTF-8 characters that are too long, GitHub issueNicholas Marriott
3729.
2023-10-30Do not truncate MSG_EOR in recvmsg().Alexander Bluhm
The soreceive() code depends on the fact that MSG_EOR is set on the last mbuf of the chain. In sbappendcontrol() move MSG_EOR to the end like sbcompress() does it. This fixes MSG_EOR handling for SOCK_SEQPACKET sockets with control message. bug reported by Eric Wong analysed, tested and OK claudio@
2023-10-30Use KERNEL_ASSERT_UNLOCKED() instead of KASSERT(!_kernel_lock_held()).Vitaliy Makkoveev
The first one defined as the second, so no functional changed. ok claudio
2023-10-30Use ERESTART for any single_thread_set() error in sys_execve().Claudio Jeker
If single thread is already held by another thread just unwind to userret() wait there and retry the system call later (if at all). OK mpi@
2023-10-30Adjust KERNEL_ASSERT_UNLOCKED() to not assert during a panic.Claudio Jeker
KERNEL_ASSERT_UNLOCKED calls _kernel_lock_held() which returns true if panicstr || db_active which triggers this assert. Workaround this by checking them before. This will alter the following Syzkaller reports: Reported-by: syzbot+169110a0815838ab5940@syzkaller.appspotmail.com Reported-by: syzbot+3c2eced405b9de6f79c2@syzkaller.appspotmail.com OK mpi@