The one conflict is in docs/dev/debt/libkernel_sys.md, where main added the
sceKernelTitleWorkaroundIsEnabled2 entry beside the sceKernelGetProcessType entry this
branch rewrites; both stay, with the measured sceKernelGetProcessType entry.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Look the name up as FreeBSD 11.4's sys_swapon does: EFAULT, ENOENT,
ENAMETOOLONG and ENOTDIR for a bad path, and ENOTBLK for any existing
file or directory, since only a disk device can be added as swap.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Keep main's updated kqueue and kevent entry, which now lists the signal
filter, next to this branch's equeue entry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Firmware 13.42's libkernel_sys checks the workaround and output pointers
for null (EFAULT), refuses a bit above 0x7f or a 64-bit second argument of
0x29 or more (EINVAL), and otherwise stores the bit of the workaround's
id bitmap, as sceKernelTitleWorkaroundIsEnabled does. The second argument
is not read otherwise; its meaning stays in the debt entry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep main's kqueue entry wording and its new ProcessExitOnSelf test next to this branch's
equeue entry and EqueueIsKqueueDescriptor test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Allow ERROR_DIRECTORY through the existing Windows link-text lookup so a
directory-flag symbolic link to a regular file, a path through a file, or
another such link is classified as BlockedByFile. Other host errors keep
the existing fallback. FreeBSD 11.4 lookup follows intermediate symbolic
links and rejects traversal through a regular file with ENOTDIR:
https://github.com/freebsd/freebsd-src/blob/releng/11.4/sys/kern/vfs_lookup.c
Extend the registered guest_kernel_sys prefix tests with access checks
for these directory links, a chain through a file, a dangling directory
link and valid file/directory link controls. Keep all existing assertions
and remove only the corrected clause from the libc debt entry.
Windows Release filesystem/path group: 21 passed, 1 existing skip on both
main and the change. CreateSymbolicLinkW fails with privilege error 1314
in this session, so the symlink cases skip and the required native-open,
main-failure and mutation-failure evidence remains unverified.
Conventions checks pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Firmware 13.42's libkernel_sys.sprx creates a kqueue for every equeue,
returns (named object id << 32) | descriptor, waits with kevent on the
descriptor and closes it on delete. sceKernelGetKqueueFromEqueue
stores the descriptor. Equeue handles were counters in their own table,
so the descriptor could not be used with kevent or close and the export
threw.
Equeues now reserve a descriptor and live in the kqueue table.
sceKernelDeleteEqueue checks the whole handle and closes the
descriptor, and sceKernelGetKqueueFromEqueue returns its low 32 bits.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A title is jailed (agreed on #11216). FreeBSD 11.4 prison_priv_check denies
PRIV_SCHED_RTPRIO, PRIV_SCHED_SET and PRIV_SCHED_SETPRIORITY to a jailed caller.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
FreeBSD 11.4 ufs_setattr refuses a change of any SF_* flag to a caller without PRIV_VFS_SYSFLAGS, which prison_priv_check denies a jailed root without allow.chflags. Under the credential model agreed on #11216 every SF_* flag now fails with EPERM, after the EOPNOTSUPP check for unknown bits, instead of throwing.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>