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

Hans de Goede hdegoede at redhat.com
Thu Jan 16 02:24:48 PST 2014


Hi All,

This patch-set makes it possible to run without as non-root without
-sharevts. With the caveat that the user must specify the vt from which X is
started as the vt to run on (as both gdm and startx do by default).

With this patch-set + my systemd-logind patches I can login as user on a vt,
and do startx without needing a suid-root bit on my xserver.

There are only 2 minor issues left with running as non root after this:
1) One (harmless) error message about failing to get iopl rights
2) Currently my /var/log is writable by the user as which I start x

Solving 1) is something to do after I've figured out how we want to deal
with UMS when the xserver is not suid root

For 2), I'm thinking about just logging to the users home dir, so user hans
would get a /home/hans/.Xorg.0.log file. Input on this is much appreciated.

Regards,

Hans


More information about the xorg-devel mailing list