Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x11-base/xorg-server: restore setuid for non-systemd/logind meson build #23160

Closed
wants to merge 1 commit into from

Conversation

alanswanson
Copy link
Contributor

The meson build does not support the autotools build option install-setuid and when not using systemd or logind the suid_wrapper is not equivalent as it does not resolve tty or input device permissions unless /etc/X11/Xwrapper.config is created with;

allowed_users = anybody
needs_root_rights = yes

(Note needs_root_rights=auto only checks video card permissions and nothing else.)

In which case you can skip the wrapper as this would be the default preference when using startx or xinit without systemd or logind from the console or init scripts. So revert to previous autotools build behaviour.

Signed-off-by: Alan Swanson reiver@improbability.net

The meson build does not support the autotools build option install-setuid
and when not using systemd or logind the suid_wrapper is not equivalent as
it does not resolve tty or input device permissions unless
/etc/X11/Xwrapper.config is created with;

allowed_users = anybody
needs_root_rights = yes

In which case you can skip the wrapper as this would be the default
preference when using startx or xinit without systemd or logind from
the console or init scripts. So revert to previous autotools build
behaviour.

Signed-off-by: Alan Swanson <reiver@improbability.net>
@gentoo-bot
Copy link

Pull Request assignment

Submitter: @alanswanson
Areas affected: ebuilds
Packages affected: x11-base/xorg-server

x11-base/xorg-server: @gentoo/x11

Linked bugs

No bugs to link found. If your pull request references any of the Gentoo bug reports, please add appropriate GLEP 66 tags to the commit message and request reassignment.

If you do not receive any reply to this pull request, please open or link a bug to attract the attention of maintainers.


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits. labels Dec 3, 2021
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-12-03 13:20 UTC
Newest commit scanned: b1d62a6
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/7330a3c9c7/output.html

@ionenwks
Copy link
Contributor

ionenwks commented Dec 7, 2021

Just to inform https://bugs.gentoo.org/828462 was opened which I believe is about the same issue.

@droc12345
Copy link

The way the ebuild has been modified isn't optimal, you've completely cut out the wrapper and instead just went with the old suid way, which is fine (I prefer that myself) but others might just want the wrapper option. You need to take that into account, and the easiest way is to have another flag, "suid" changes suid of binary, "wrap" allows wrapper including setting suid properly on the wrap program.

@slashbeast
Copy link
Contributor

I am fine with the way this pull request make changes. The old behavior was pure suid and not wrapper unless logind interface was present. I am interested to hear other comments but unless any significant one will pop up, I will merge it.

@alanswanson alanswanson deleted the xorg-suid branch April 26, 2023 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits.
Projects
None yet
6 participants