FS#41258 - X server does not drop privileges like expected

Attached to Project: Arch Linux
Opened by Florian (combinatoric) - Friday, 18 July 2014, 18:46 GMT
Last edited by Dave Reisner (falconindy) - Friday, 18 July 2014, 18:56 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When calling startx from an terminal (w/o another X server running) X will run as root.

Expected behavior:

When calling startx from an terminal (w/o another X server running) X will run as the calling user.

Culprit:

The wrapper Xorg.wrap is called and drops privileges when all dependencies are met, but the suid bit is set with Xorg.bin (which is called by Xorg.wrap)

Workaround:

Remove the suid bit from Xorg.bin. This yields the expected behavior.

Regressions:

Xdm works fine as it runs as root already. Other X call paths not tested.

Additional info:
* Version 1.16.0-1
This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 18 July 2014, 18:56 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#41257 

Loading...