On Mon, Jan 24, 2005 at 01:34:56AM +0100, Alessandro Sappia wrote:

> I was reading vt driver
> and I saw
>         /*
>          * To have permissions to do most of the vt ioctls, we either have
>          * to be the owner of the tty, or have CAP_SYS_TTY_CONFIG.
>          */
>         perm = 0;
>         if (current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG))
>                 perm = 1;
> 
> (lines 382-388 - drivers/char/vt_ioctl.c)
> 
> After reading the comment I thinked I can change vt
> from one of my own to another one of mine.

Yes, the comment. But you should read the code instead.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to