summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2022-09-02 07:37:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2022-09-02 07:37:58 +0000
commit9b6d7de948017a16721bf5ca1df270a39ef0d28a (patch)
tree0b93f88efda91cec8943ac37f2d7f39b34220fb0 /usr.sbin
parent8b5ea5b7dd7eda6f56c2061daeda74498a0075c3 (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