]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not allow the SNPSTTY ioctl for the snoop device that has a tty
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 3 Dec 2007 14:02:27 +0000 (14:02 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 3 Dec 2007 14:02:27 +0000 (14:02 +0000)
commit6ed4cfc05d05321cfe6e03c5e763aab7c3638518
tree4fa9a4f171731c82febb40c597a5f4368ccf060b
parentfb76e092de481e44915f32f337dd7a6ff6242d8c
Do not allow the SNPSTTY ioctl for the snoop device that has a tty
attached. Otherwise, the snp->snp_tty would be overwritten, while the
tty line discipline still set to the snpdisc. Then snplwrite() causes
panic because ttytosnp() cannot find the snp.

MFC after: 1 week
sys/dev/snp/snp.c