Re: [UART] Why CAP_SYS_ADMIN can open non-started port?
From: Alan Cox <hidden>
Date: 2011-08-17 10:09:48
From: Alan Cox <hidden>
Date: 2011-08-17 10:09:48
On Wed, 17 Aug 2011 11:25:27 +0200 Jiri Slaby [off-list ref] wrote:
Hi,
while I was in the process of uart cleanup, I found this:
static int uart_startup(...) {
...
retval = port->ops->startup(port);
...
if (retval && capable(CAP_SYS_ADMIN))
retval = 0;
return retval;
}
Why CAP_SYS_ADMIN should not see the failing port startup? Does anybody
from you remember if it is for some kind of possibility to later
re-autoconfigure the port or something like that?In a word - setserial Alan