login: lock down input devices on extra seats

We need to tell the X server to grab the keyboards
and mice associated with a hotplugged seat, so that
it doesn't have the ability to control the kernel
vt consoles.
This commit is contained in:
Ray Strode
2012-01-31 20:00:36 +01:00
committed by Lennart Poettering
parent b3e0604274
commit 8906b207d1
+5
View File
@@ -139,6 +139,11 @@ int main(int argc, char *argv[]) {
"Section \"ServerFlags\"\n"
" Option \"AutoAddDevices\" \"True\"\n"
" Option \"AllowEmptyInput\" \"True\"\n"
" Option \"DontVTSwitch\" \"True\"\n"
"EndSection\n"
"Section \"InputClass\"\n"
" Identifier \"Force Input Devices to Seat\"\n"
" Option \"GrabDevice\" \"True\"\n"
"EndSection\n",
device_node);