kernelthread.com

VTswitch

About

VTswitch is a Linux kernel module for disabling the VT_ACTIVATE ioctl.

Loading the vtswitch module creates a file vtswitch in the /proc directory hierarchy. The file contains the string enabled by default, and the VT_ACTIVATE ioctl is allowed. Writing the string disabled to /proc/vtswitch disallows the ioctl. Of course, it may be enabled again.

Disabling the VT_ACTIVATE ioctl might be useful for not allowing a user to go to the text consoles from the X Window system. Note that disabling this ioctl does not disable the Ctrl-Alt-F? switching if you are already in a text console.

Download

vtswitch source archive.

Disclaimer

Please note that this software was written several years ago, and is listed here only for archival purposes.