
Not necessary, you need to set xorg-server[suid].transsib wrote:May be it is about time I switch to systemd.
Certainly not, why would Plasma collide with an init system.transsib wrote:There are a few other issues where openrc collides with stuff i.e. plasma.
the quick solution is re-emerge xorg-server with the suid flag settranssib wrote:I´ m not certain if this is related. Apologies if this is the wrong thread.
The recent upgrade to x11-base/xorg-server-1.20.3 caused X not to start here
on a openrc system with the following error message:
parse_vt_settings Cannot open /dev/tty0 Permission denied.
Had to mask xorg-server-1.20.3 and downgrade to xorg-server-1.19.5-r2 .
Now X starts again.
May be it is about time I switch to systemd. There are a few other issues
where openrc collides with stuff i.e. plasma.
This will revert behaviour and does expose the issue this thread is discussing. If you are the only one using your machine you do not need to really worry (as much ... prying eyes).emerge xorg-server -va
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] x11-base/xorg-server-1.20.3:0/1.20.3::gentoo USE="glamor ipv6 udev xorg -debug -dmx -doc -kdrive -libressl -minimal (-selinux) -static-libs -suid -systemd -unwind -wayland -xcsecurity -xephyr -xnest -xvfb" 0 KiB
ahh, does elogin then provide consolekit-like capability (setting permissions). I don't know both, I just know these are spinoff's from systemd to support non-systemd systems when such functionality was forced onto the userasturm wrote:consolekit and elogind are exclusive-or.Naib wrote:One option might be to have consolekit and elogin installed

The quickest solution is to "chmod 4711 /usr/bin/Xorg" as rootNaib wrote:the quick solution is re-emerge xorg-server with the suid flag settranssib wrote:I´ m not certain if this is related. Apologies if this is the wrong thread.
The recent upgrade to x11-base/xorg-server-1.20.3 caused X not to start here
on a openrc system with the following error message:
parse_vt_settings Cannot open /dev/tty0 Permission denied.
Had to mask xorg-server-1.20.3 and downgrade to xorg-server-1.19.5-r2 .
Now X starts again.
May be it is about time I switch to systemd. There are a few other issues
where openrc collides with stuff i.e. plasma.
login as rootAnon-E-moose wrote:The quickest solution is to "chmod 4711 /usr/bin/Xorg" as rootNaib wrote:the quick solution is re-emerge xorg-server with the suid flag settranssib wrote:I´ m not certain if this is related. Apologies if this is the wrong thread.
The recent upgrade to x11-base/xorg-server-1.20.3 caused X not to start here
on a openrc system with the following error message:
parse_vt_settings Cannot open /dev/tty0 Permission denied.
Had to mask xorg-server-1.20.3 and downgrade to xorg-server-1.19.5-r2 .
Now X starts again.
May be it is about time I switch to systemd. There are a few other issues
where openrc collides with stuff i.e. plasma.
asturm wrote:consolekit predates systemd and only gained logind-style capabilities recently (I have no idea to what extent this is functional, at least it is not drop-in support meaning packages need to get patched), elogind is basically standalone logind ripped out of systemd, for use with traditional init systems. Packages need to be built with either consolekit or elogind or systemd support globally. If you mix, you will run into undefined behavior (which makes the recent addition of elogind/systemd as a dependency of skypeforlinux especially bad).
So yes, in theory if suid-wrapper just needs logind, elogind should be an easy alternative to systemd.

Code: Select all
$ diff /var/db/pkg/x11-base/xorg-server-1.20.3/xorg-server-1.20.3.ebuild /usr/portage/x11-base/xorg-server/xorg-server-1.20.3.ebuild
6d5
< XORG_EAUTORECONF=yes
14c13
< KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
---
> KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
17c16
< IUSE_SERVERS="dmx kdrive wayland xephyr xnest xorg xvfb"
---
> IUSE_SERVERS="dmx kdrive suid wayland xephyr xnest xorg xvfb"
167c166
< $(use_enable !systemd install-setuid)
---
> $(use_enable suid install-setuid)
200a200,201
>
> find "${ED}"/var -type d -empty -delete || dieCode: Select all
$ emerge -vp xorg-server
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] x11-base/xorg-server-1.20.3:0/1.20.3::gentoo USE="glamor libressl udev xorg -debug -dmx -doc -ipv6 -kdrive -minimal (-selinux) -static-libs -suid% -systemd -unwind -wayland -xcsecurity -xephyr -xnest -xvfb"Code: Select all
$ emerge -vp xorg-server
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] x11-base/xorg-server-1.20.3:0/1.20.3::gentoo USE="glamor libressl suid%* udev xorg -debug -dmx -doc -ipv6 -kdrive -minimal (-selinux) -static-libs -systemd -unwind -wayland -xcsecurity -xephyr -xnest -xvfb"
I was trying to show the relevant USE flag. In the first output, it is "-suid%" in the second output, it is "suid%*". % "newly added or removed," * "transition to or from enabled state."asturm wrote:Pardon my ignorance, but `emerge -vp xorg-server` will always make you rebuild.
How is a USE flag disabled without triggering a state change?asturm wrote:It's a USE flag, just disable it?
And I can mask that version.asturm wrote:But if it is bumped... you'll have to "re-" build as well?

I like that idea.Ant P. wrote:Maybe instead of a USE flag it should be a pkg_config. Ask the user if they want a plain unprivileged binary for service managers, setgid tty for startx users, or a setuid root for... whatever. People who refuse to give their account input device access at all?
Bones McCracker wrote:It wouldn't be so bad, if it didn't suck.
NeddySeagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
Asking the user? As in with a prompt that waits for input?Marcih wrote:I like that idea.Ant P. wrote:Maybe instead of a USE flag it should be a pkg_config. Ask the user if they want a plain unprivileged binary for service managers, setgid tty for startx users, or a setuid root for... whatever. People who refuse to give their account input device access at all?
