LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-17-2021, 08:05 PM   #46
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368

Quote:
Originally Posted by LuckyCyborg View Post
Will work ONLY on the latest updated -current.
YES

@drgibbon -af -ef -Af all produce the same result, with no root process
 
Old 12-18-2021, 02:59 AM   #47
ceed
Member
 
Registered: Jul 2014
Distribution: Slackware_x64 15
Posts: 68

Rep: Reputation: Disabled
So I went from recompiling xorg-serer with this:
Code:
 --disable-suid-wrapper --disable-install-setuid --enable-systemd-logind
The result was as expected: after startx X running as $USER. Upon killing X I was returned to tty1, all well and good.

After the recent change "--enable-systemd-logind" I returned to the latest distro xorg-server with the "chmod 755 /usr/libexec/Xorg*".
X running as $USER: very good. However, upon killing X and return to tty, I have no backlight.

Has anyone else encountered this? And does anyone know the original permissions for /usr/libexec/Xorg as I would like to change back for testing purposes.

TIA
 
Old 12-18-2021, 03:08 AM   #48
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,820

Rep: Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494
Quote:
Originally Posted by ceed View Post
And does anyone know the original permissions for /usr/libexec/Xorg as I would like to change back for testing purposes.
chmod 4755 /usr/libexec/Xorg*
 
2 members found this post helpful.
Old 12-18-2021, 03:25 AM   #49
ceed
Member
 
Registered: Jul 2014
Distribution: Slackware_x64 15
Posts: 68

Rep: Reputation: Disabled
Much obliged Petri

The result is still no backlight on tty upon killing X. Interesting! The only other changes to xorg are the security fixes, but I doubt they have anything to do with it.

For some reason X is taking the backlighting with it. I'll test with rebuiling the xorg-server with the extra disabled items.

Thanks again.

EDIT: upon second thought those simply remove the suid which is the purpose of the chmod 755 I am supposing.

Last edited by ceed; 12-18-2021 at 03:31 AM.
 
Old 12-18-2021, 03:40 AM   #50
ceed
Member
 
Registered: Jul 2014
Distribution: Slackware_x64 15
Posts: 68

Rep: Reputation: Disabled
Update: it's more a glitch than anything. If I change ttys backlight returns.
 
Old 12-18-2021, 05:25 AM   #51
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,904

Rep: Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025
The 'video' group is a complete mess anyway. It is used not only for graphics rendering hardware /dev/dri/*, /dev/fb*, but also for V4L devices such as tv-tuners, capture cards, webcams, which a user would require access to. This is not good priv-sep. IMO there really should be a 'dri' group for the graphics hardware to separate it from the stuff it is reasonable for users to have access to.

Maybe this is something that can be cleaned-up post 15.0?

Last edited by GazL; 12-18-2021 at 05:30 AM.
 
Old 12-18-2021, 06:00 AM   #52
ceed
Member
 
Registered: Jul 2014
Distribution: Slackware_x64 15
Posts: 68

Rep: Reputation: Disabled
OK, I have a new question. Many years ago when I last installed, I hit the up arrow when creating $USER which automatically added me to the following groups:
Code:
users lp floppy audio video cdrom plugdev power netdev scanner
Is this deprecated since the introduction of elogind? If so can someone advise me of which groups I should remove myself from?

TIA
 
1 members found this post helpful.
Old 12-18-2021, 08:40 AM   #53
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
@ceed
Depends on your usage, try to make a user with just a default group 'users' and see what breaks.
For me it's OK with just that one group, but if you want additional hardware support you may have to add another group to your user.
At least that's how it used to work, no idea if elogind changes anything.
 
1 members found this post helpful.
Old 12-18-2021, 08:56 AM   #54
Charadon
Member
 
Registered: Mar 2017
Location: Somewhere
Distribution: Slackware Current
Posts: 47

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by GazL View Post
The 'video' group is a complete mess anyway. It is used not only for graphics rendering hardware /dev/dri/*, /dev/fb*, but also for V4L devices such as tv-tuners, capture cards, webcams, which a user would require access to. This is not good priv-sep. IMO there really should be a 'dri' group for the graphics hardware to separate it from the stuff it is reasonable for users to have access to.

Maybe this is something that can be cleaned-up post 15.0?
The groups and priv seperation being a mess is actually what elogind is supposed to fix =P. Honestly, and this is a controversial opinion maybe, I think logind is one of the few good things that came out of systemd.
 
1 members found this post helpful.
Old 12-18-2021, 09:40 AM   #55
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,904

Rep: Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025
Quote:
Originally Posted by Charadon View Post
The groups and priv seperation being a mess is actually what elogind is supposed to fix =P.
Except it doesn't fix it while a single group still controls access to both V4L devices and DRI devices.

To avoid an unnecessary extra group, perhaps making the dri devices root:root and then letting the user access be granted to them though the ACL's that logind applies as part of its seat management would work.
 
1 members found this post helpful.
Old 12-18-2021, 09:44 AM   #56
Charadon
Member
 
Registered: Mar 2017
Location: Somewhere
Distribution: Slackware Current
Posts: 47

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by GazL View Post
Except it doesn't fix it while a single group still controls access to both V4L devices and DRI devices.

To avoid an unnecessary extra group, perhaps making the dri devices root:root and then letting the user access be granted to them though the ACL's that logind applies as part of its seat management would work.
Ah, I get ya now. That is definitely a problem.
 
1 members found this post helpful.
Old 12-19-2021, 03:44 PM   #57
ceed
Member
 
Registered: Jul 2014
Distribution: Slackware_x64 15
Posts: 68

Rep: Reputation: Disabled
Thank you @elcore for you good advise. I've removed my $USER from all those extra groups with no obvious ill-effect. I remember now that the "up arrow thing" is an option given when creating a user with adduser. I wonder why it gives that option, of bulk adding the user to those groups, when it's not necessary? Interesting...
 
Old 12-27-2021, 07:10 PM   #58
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Today's changelog:
Code:
Mon Dec 27 23:06:00 UTC 2021
The --enable-systemd-logind change to xorg-server that caused resume from
suspend regressions (and others) has been reverted, and in retrospect it was
a bad idea to take it at that point, but it had appeared as if it wouldn't
cause problems in the case where Xorg was running as root. Oh well, lesson
learned. But the build script has been enhanced to make it easy to build
rootless versions of the xorg-server packages. Just do this:
       ROOTLESSX=YES ./x11.SlackBuild xserver xorg-server
Depending on your GPU, this could work for your use case with no problems.
Also, I've gone ahead and taken a couple of shared library version bumps since
the projects (opencv and poppler) have decent track records as far as not
introducing regressions, and if there are any, we've got time to test and fix.
I'm still avoiding some things that aren't as trusted in that regard, and will
likely continue to do so. :-)

So from this, I gather that you still have to recompile xorg for rootless as it is not set by default...
 
1 members found this post helpful.
Old 12-29-2021, 12:29 PM   #59
Charadon
Member
 
Registered: Mar 2017
Location: Somewhere
Distribution: Slackware Current
Posts: 47

Original Poster
Rep: Reputation: 16
That's a shame, but I suppose someone could host a repo with rootless x enabled once 15.0 is out.
 
Old 12-29-2021, 02:03 PM   #60
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by Charadon View Post
That's a shame, but I suppose someone could host a repo with rootless x enabled once 15.0 is out.
Same, I would like rootless X by default - Maybe it can be feasible on 15.1?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How does rootless Podman work? LXer Syndicated Linux News 0 02-11-2019 04:30 PM
Xming access to CentOS 7.3 (remote desktop/rootless) DarkSmurf Linux - Newbie 1 07-24-2017 07:19 PM
LXer: Apple's fruitless rootless security broken by code that fits in a tweet LXer Syndicated Linux News 0 03-30-2016 04:24 PM
[SOLVED] X refuses to kick in. rootless related? kaz2100 Debian 1 12-14-2015 08:07 PM
Can one launch a rootless Xorg server in Xgl suger Linux - Software 2 05-13-2006 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration