Commit abfdd83d authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] serial proc gives info on keycounts which can sometiems be abused

For 2.4.x we made the file r-------- but for 2.6 we can do a nicer job
parent 01ea7c89
......@@ -1667,6 +1667,8 @@ static int uart_line_info(char *buf, struct uart_driver *drv, int i)
return ret + 1;
}
if(capable(CAP_SYS_ADMIN))
{
status = port->ops->get_mctrl(port);
ret += sprintf(buf + ret, " tx:%d rx:%d",
......@@ -1706,6 +1708,9 @@ static int uart_line_info(char *buf, struct uart_driver *drv, int i)
strcat(stat_buf, "\n");
ret += sprintf(buf + ret, stat_buf);
}
#undef STATBIT
#undef INFOBIT
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment