version 1.68, 2011/02/08 20:20:26 |
version 1.68.4.1, 2012/04/17 00:07:25 |
Line 184 cnioctl(dev_t dev, u_long cmd, void *dat |
|
Line 184 cnioctl(dev_t dev, u_long cmd, void *dat |
|
* output from the "virtual" console. |
* output from the "virtual" console. |
*/ |
*/ |
if (cmd == TIOCCONS && constty != NULL) { |
if (cmd == TIOCCONS && constty != NULL) { |
error = kauth_authorize_generic(l->l_cred, |
error = kauth_authorize_device_tty(l->l_cred, |
KAUTH_GENERIC_ISSUSER, NULL); |
KAUTH_DEVICE_TTY_VIRTUAL, constty); |
if (!error) |
if (!error) |
constty = NULL; |
constty = NULL; |
return (error); |
return (error); |