Commit Graph

11 Commits

Author SHA1 Message Date
Earnestly bedb6e313b doc: rationale is a noun 2018-08-04 15:27:50 +01:00
Earnestly 3db3447aa4 doc: mention a workaround for Xorg.wrap 2018-07-19 14:06:16 +01:00
Nameless b8c45edb31 Adjust sx to work with Xorg 1.20 (and older)
Since Xorg 1.20 the location of the primary binary has changed making it
impossible to support both 1.20 and previous versions.

So instead I'm switching to the `Xorg' command directly which won't
bypass Xorg.wrap in older versions, but since Xorg 1.20, the `Xorg'
command doesn't use it.
2018-05-13 23:25:22 +01:00
Earnestly 8d21a607bf doc: mention that the login tty is reused 2017-12-11 16:47:46 +00:00
Earnestly a488db27fa doc: mention that we don't use -listen 2017-12-09 23:34:20 +00:00
Earnestly f783766e2c sx: drop dependency on openssl
Turns out openssl rand would obnoxiously create a HOME/.rnd dotfile
unless told otherwise with the RANDFILE environment.  Unfortunately
this neither options are compelling and neither can openssl rand be
told to not write this file.

Instead I'm going to use /dev/urandom which appears to be available
on practically every UNIX.

This commit also tidies up the timeout kill logic to better express
what I am doing.
2017-12-07 13:06:46 +00:00
Earnestly 718add311c doc: clarify purpose and bump the manual date 2017-12-07 12:03:43 +00:00
Earnestly 30457a3139 sx: drop dependencies on coreutils and util-linux
Upon review of GNU tail I discovered that the implemention of --pid was
the same method as polling kill -0 on a sleep interval, which defaults
to 1 second unless -s is used.

This is perhaps expected due to the lack of a pwait(2) system call, I
decided to implement the same mechanic myself and drop both the
requirement on GNU tail and GNU timeout at the same time.

This commit also replaces mcookie from util-linux with openssl rand
which is used to generate a random MD5 checksum for use in the
MIT-MAGIC-COOKIE-1 value.
2017-12-07 11:58:40 +00:00
Earnestly e08bc130c0 sx: use the default logfile
There's not a lot of point in absorbing the xserver's log file when it
will just be less intuitive for those looking for it in the standard
location.  Since the log is generated by Xorg and not sx, it only seems
reasonable.

This commit also renames xauthfile to xauthority for a little more
consistency with documentation and prior art.
2017-12-02 02:22:29 +00:00
Earnestly 95f648452f README: mention the Xorg.wrap bypass
Xorg.wrap default system of autodetection of root rights requirement is
wrong in every case I've seen it used.  The result is the Xorg server
runs as the root user when it is not necessary.

The main autodetection failure case is when the proprietary nvidia
drivers are used, incorrectly assuming Xorg needs to be run as root.
2017-12-01 21:15:06 +00:00
Earnestly 161b8be6f5 introduce sx 2017-12-01 20:14:54 +00:00