mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 15:48:48 -04:00
Under DIAGNOSTIC, complain if ENOIOCTL leaks out through VOP_IOCTL().
This commit is contained in:
parent
203639c449
commit
3c275c19c4
1 changed files with 6 additions and 0 deletions
|
|
@ -773,6 +773,12 @@ vn_ioctl(fp, com, data, active_cred, td)
|
|||
return (0);
|
||||
}
|
||||
error = VOP_IOCTL(vp, com, data, fp->f_flag, active_cred, td);
|
||||
if (error == ENOIOCTL) {
|
||||
#ifdef DIAGNOSTIC
|
||||
Debugger("ENOIOCTL leaked through");
|
||||
#endif
|
||||
error = ENOTTY;
|
||||
}
|
||||
if (error == 0 && com == TIOCSCTTY) {
|
||||
|
||||
/* Do nothing if reassigning same control tty */
|
||||
|
|
|
|||
Loading…
Reference in a new issue