]> err.no Git - systemd/commitdiff
login: lock down input devices on extra seats
authorRay Strode <rstrode@redhat.com>
Tue, 31 Jan 2012 18:47:12 +0000 (13:47 -0500)
committerLennart Poettering <lennart@poettering.net>
Tue, 31 Jan 2012 19:00:36 +0000 (20:00 +0100)
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.

src/login/multi-seat-x.c

index d0845e7cae2e762e12cb8e1f6aec5b3a67ca6997..7133e026dc2df356c32bf63faefbeca4c26c3ae9 100644 (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);