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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 64401 Build 61285: arc lint + arc unit
Event Timeline
| sys/kern/tty.c | ||
|---|---|---|
| 1653 | Or just if (priv_check(td, PRIV_TTY_STI) == 0) return (0);. | |
| sys/kern/tty.c | ||
|---|---|---|
| 1656 | This is counter-intuitive BTW. | |
| sys/kern/tty.c | ||
|---|---|---|
| 1656 | I agree, but I haven't yet spent any time tracking down the current requirements -- I would've expected to need FWRITE instead to alter the tty buffer. | |