HomeFreeBSD

pcm: centralize 32-bit ioctl compat

Description

pcm: centralize 32-bit ioctl compat

Move all handlng of struct sndstioc_nv_arg(32) to sndstat_ioctl() and
make the functions that actually do the work take a buffer and size or
size pointer. The 32-bit compat work is minimal so just inline it.

Remove checks that we've got a 32-bit process for 32-bit ioctls. We
don't check that default ioctls are from 64-bit processes on 64-bit
systems.

Reviewed by: christos
Differential Revision: https://reviews.freebsd.org/D45307

Details

Provenance
brooksAuthored on May 23 2024, 4:14 PM
Reviewer
christos
Differential Revision
D45307: pcm: centralize 32-bit ioctl compat
Parents
rG61b07f8aa528: MAC/do: allow to call setuid if real user id is 0
Branches
Unknown
Tags
Unknown