On Mon, Aug 19, 2019 at 08:45:28PM +0100, Ken Moffat via blfs-dev wrote:
> 
> Please discard my past contributions to this thread, it appears I
> installed Xorg suid and with the wrapper on this build.  Worse, on
> my previous test build it was still suid (without the wrapper).
> 
The wrapper is of course expected.

What I installed was:
ken@plexi ~ $ls -l /usr/libexec/Xorg*
-rwsr-xr-x 1 root root 2784784 Aug 18 00:37 /usr/libexec/Xorg
-rwsr-xr-x 1 root root   17600 Aug 18 00:37 /usr/libexec/Xorg.wrap

But my buildscript was last updated on 29th July when I moved the
enable install setuid to a comment :

# --enable-install-setuid \
echo "configure"
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
 --with-xkb-output=/var/lib/xkb \
 --enable-glamor \
 --enable-suid-wrapper \
 --disable-systemd-logind \
  >>$KM_LOG 2>&1

Trying it now, but pasting the instructions, changing the prefix
to /opt/X11 and doing it unscripted, it installed Xorg without
setuid, as intended :

ken@plexi /tmp/xorg-server-1.20.5 $ls -l /opt/X11/libexec/
total 17728
-rwxr-xr-x 1 root root 18120136 Aug 19 20:54 Xorg
-rwsr-xr-x 1 root root    29432 Aug 19 20:54 Xorg.wrap

BUT I then reran the script:

root@plexi /home/ken #ls -l /usr/libexec/Xorg*
-rwsr-xr-x 1 root root 2784784 Aug 19 21:03 /usr/libexec/Xorg
-rwsr-xr-x 1 root root   17600 Aug 19 21:03 /usr/libexec/Xorg.wrap

(the sizes in the trial using /opt are without added CFLAGS)

There must be a gremlin somewhere.

ĸen
-- 
Adopted by dwarfs, brought up by dwarfs.  To dwarfs I'm a dwarf, sir.
I can do the rite of k'zakra, I know the secrets of h'ragna, I can
ha'lk my g'rakha correctly ... I am a dwarf
           Captain Carrot Ironfoundersson (in The Fifth Elephant)
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to