Re: [UART] Why CAP_SYS_ADMIN can open non-started port?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 17 Aug 2011 11:25:27 +0200
Jiri Slaby <jirislaby@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux