stty(1) can't be pledged for all modes, but it can be unveiled. the only file to
authormestre <mestre@openbsd.org>
Sat, 23 Oct 2021 16:45:32 +0000 (16:45 +0000)
committermestre <mestre@openbsd.org>
Sat, 23 Oct 2021 16:45:32 +0000 (16:45 +0000)
commit81b6a0224fb31d67c429a7578a28e370d1555ae2
tree86194c7099371cc43f884142198fbe178c47348f
parent306068a2945bf8b960d17abd9ecf9c7681ad638e
stty(1) can't be pledged for all modes, but it can be unveiled. the only file to
be opened is on stty -f `file', so call unveil(2) afterwards to restrict all fs
access.

OK deraadt@
bin/stty/stty.c