diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-09-02 07:37:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-09-02 07:37:58 +0000 |
commit | 9b6d7de948017a16721bf5ca1df270a39ef0d28a (patch) | |
tree | 0b93f88efda91cec8943ac37f2d7f39b34220fb0 /usr.sbin | |
parent | 8b5ea5b7dd7eda6f56c2061daeda74498a0075c3 (diff) |
openpty() family of functions use /dev/ptm PTMGET to open a master+slave fd
pair, and also provides their names. Internally, 3 NDINIT+namei operations
access /dev/[tp]ty[p-zP-T][0-9a-zA-Z], of these 2 followed unveil restrictions.
I argue if you unveil /dev/ptm, (and not the 372 other nodes), you still want
openpty() to provide you with working fd's, and the names, which the caller
will probably never open manually, because the fd's are given.
So change all NDINIT to use KERNELPATH, bypassing unveil.
ok semarie
Diffstat (limited to 'usr.sbin')
0 files changed, 0 insertions, 0 deletions