[PATCH v2 0/2] linux: Allow console switching to work without root rights

Hans de Goede hdegoede at redhat.com
Wed Jan 22 03:30:22 PST 2014


Hi All,

Here is v2 of my "Allow console switching to work without root rights"
patch-set. Changes:

-Drop "linux: xf86OpenConsole: open vt before detaching from terminal"
 This causes the server to not get its vt as controlling tty when started
 without a controlling tty (as gdm does), which in turn causes systemd-logind
 to see the session in question as non-active, and thus you don't get
 acls opened up on local device nodes such as /dev/snd/* /dev/cdwriter, etc.

-Rework "linux: xf86OpenConsole: Don't detach from controlling tty when it is our vt"
 This needed changes to deal with the above dropping, as well as some tweaking
 to only auto-enable keeptty if the vt the server is asked to run on is its
 controlling tty, rather then the active vt, to avoid the above logind
 problems when started without a, or with a different, controlling tty.

Regards,

Hans


More information about the xorg-devel mailing list