Linux Serial subsystem development
 help / color / mirror / Atom feed
* [UART] Why CAP_SYS_ADMIN can open non-started port?
@ 2011-08-17  9:25 Jiri Slaby
  2011-08-17 10:13 ` Alan Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Jiri Slaby @ 2011-08-17  9:25 UTC (permalink / raw)
  To: linux-serial; +Cc: Alan Cox, Greg KH, linux

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?

thanks,
-- 
js

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-17 11:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-17  9:25 [UART] Why CAP_SYS_ADMIN can open non-started port? Jiri Slaby
2011-08-17 10:13 ` Alan Cox
2011-08-17 11:48   ` [PATCH] TTY: serial, document ignoring of uart->ops->startup error Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox