[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-kernel
Subject: VT_PROCESS, VT_LOCKSWITCH capabilities
From: Frank Benkstein <frank-lkml () benkstein ! net>
Date: 2007-07-31 22:22:38
Message-ID: 46AFB62E.2080303 () benkstein ! net
[Download RAW message or body]
Hi,
I wonder why there are different permissions needed for VT_PROCESS
(access to the current virtual console) and VT_LOCKSWITCH
(CAP_SYS_TTY_CONFIG).
The first one lets the calling process decide if console switching is
allowed, the second one simply disables it. If a program wants to
forbid console switching the only technical difference I can see is that
switching is automatically reenabled when the program exits when using
VT_PROCESS. When using VT_LOCKSWITCH it must be manually reenabled.
When the program uses the first method and disables terminal signals and
SysRQ is disabled, too, I see no practical difference between the two.
Please CC me on replies, I am not on the list.
Best regards
Frank Benkstein.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic