HomeFreeBSD

kern: tty: refactor TIOCSTI privilege checks slightly

Description

kern: tty: refactor TIOCSTI privilege checks slightly

This removes some repetition from it and makes the flow a little more
obvious. Future work may find some way to add more constraints to the
unprivileged path, add a security sysctl to disable it, or perhaps
some combination of the two.

Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D50506

Details

Provenance
kevansAuthored on May 28 2025, 1:19 AM
Reviewer
kib
Differential Revision
D50506: kern: tty: refactor TIOCSTI privilege checks slightly
Parents
rG2d6c5614aab8: move ch{own,grp}(8) and tee(1) to FreeBSD-runtime
Branches
Unknown
Tags
Unknown