]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't allow opening the callout device when the callin device is already
authorkib <kib@FreeBSD.org>
Mon, 25 Jan 2016 16:47:20 +0000 (16:47 +0000)
committerkib <kib@FreeBSD.org>
Mon, 25 Jan 2016 16:47:20 +0000 (16:47 +0000)
commit8d218f7844b26d40a38d2b850b787d05aa3cdce0
tree4a4dad63be36d33fe77cb756acaf4bea8d00340a
parent1c17300d1dcdf3d060b9ffb3d59ac06094bd936f
Don't allow opening the callout device when the callin device is already
open (in disguise as the console device).  The only allowed combination
was supposed to be the callin device with the console.

Fix the assertion in ttydev_close() that was meant to detect this (it
only detected all 3 devices being open).  Assert this in ttydev_open()
too.

Submitted by: bde
MFC after: 2 weeks
sys/kern/tty.c