public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* VT_PROCESS, VT_LOCKSWITCH capabilities
@ 2007-07-31 22:22 Frank Benkstein
  2007-08-01  2:44 ` Frank Benkstein
  2007-08-01  4:49 ` Andrew Morton
  0 siblings, 2 replies; 6+ messages in thread
From: Frank Benkstein @ 2007-07-31 22:22 UTC (permalink / raw)
  To: linux-kernel

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.

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

end of thread, other threads:[~2007-08-02 10:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-31 22:22 VT_PROCESS, VT_LOCKSWITCH capabilities Frank Benkstein
2007-08-01  2:44 ` Frank Benkstein
2007-08-01 22:19   ` Andrew Morton
2007-08-02 10:31     ` Frank Benkstein
2007-08-01  4:49 ` Andrew Morton
2007-08-01  9:53   ` Frank Benkstein

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