Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] X fails with old permissions errors
Date: Thu, 04 Oct 2018 08:28:57
Message-Id: CAC=wYCFG4EbE6MWS_pXjvV4VHnAkeKq0f+VVLrJwOtnz=1YQ+g@mail.gmail.com
1 Since around 4 days ago X wont run, and my web searches show i'm hitting
2 the same sorts of issues that arose when X moved away from running as root.
3
4 In strace, i see;
5 $ grep Permi startx11.out
6 319 setpriority(PRIO_PROCESS, 320, -1) = -1 EACCES (Permission denied)
7 320 openat(AT_FDCWD, "/dev/tty0", O_WRONLY) = -1 EACCES (Permission
8 denied)
9 320 openat(AT_FDCWD, "/proc/mtrr", O_WRONLY|O_CLOEXEC) = -1 EACCES
10 (Permission denied)
11
12 $ ls -l /dev/tty0 /proc/mtrr
13 crw--w---- 1 root tty 4, 0 Oct 4 18:14 /dev/tty0
14 -rw-r--r-- 1 root root 0 Oct 4 18:14 /proc/mtrr
15
16 $ grep libexec startx11.out
17 320 faccessat(AT_FDCWD, "/usr/libexec/Xorg.wrap", X_OK) = 0
18 320 execve("/usr/libexec/Xorg.wrap", ["/usr/libexec/Xorg.wrap",
19 "-nolisten", "tcp", ":0", "-auth", "/home/adam/.serverauth.303"],
20 0x55b02e0cdc20 /* 38 vars */) = 0
21
22 $ ls -l /usr/libexec/Xorg.wrap
23 -rws--x--x 1 root root 14392 Oct 2 19:19 /usr/libexec/Xorg.wrap
24
25 Also from Xorg.0.log
26 [ 176.550] (EE) systemd-logind: failed to get session: PID 320 does not
27 belong to any known session
28
29 I cant work out why there's an issue given the suid root on Xorg.wrap, so I
30 rebuilt systemd and the X stuff, but no change.
31
32 Any ideas?

Replies

Subject Author
[gentoo-user] Re: X fails with old permissions errors Adam Carter <adamcarter3@×××××.com>