Changeset 27373006 for x


Ignore:
Timestamp:
08/01/2019 07:17:08 PM (5 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 9.0, 9.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
9fffa917
Parents:
d9951ba
Message:

Modify xorg-server and xinit instructions to
avoid using the suid bit on the Xorg application. Add a note
to xinit on why using Xorg with the suid bit set may be useful.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21892 af4574ff-66df-0310-9fd7-8a98e5e911e0

Location:
x/installing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • x/installing/xinit.xml

    rd9951ba r27373006  
    8282    <title>Installation of xinit</title>
    8383
    84     <para revision='sysv'>First, modify <command>startx</command>, hence the X
    85     session starts on the first unused virtual terminal, which normally is
    86     vt7:</para>
    87     <!--Apparently, this should not be done for systemd systems-->
    88 
    89 <screen revision='sysv'><userinput>sed -e '/$serverargs $vtarg/ s/serverargs/: #&amp;/' \
    90     -i startx.cpp</userinput></screen>
    91 
    92     <note revision='sysv'>
    93       <para>
    94         If you have already installed this package without the sed above, there
    95         is no need to reinstall. Just modify the installed
    96         <command>startx</command>, issuing, as the <systemitem
    97         class="username">root</systemitem> user:
    98         <command>sed -i '/$serverargs $vtarg/ s/serverargs/: #&amp;/'
    99         $XORG_PREFIX/bin/startx</command>
    100       </para>
    101     </note>
    102 
    10384    <para>Install <application>xinit</application> by running the
    10485    following commands:</para>
     
    11495<screen role="root"><userinput>make install &amp;&amp;
    11596ldconfig</userinput></screen>
     97
     98    <note revision='sysv'>
     99
     100      <para>If starting Xorg from the command line, the default instructions
     101      above starts Xorg on the current virtual terminal.  It may be convenient
     102      to see Xorg and associated application messages on the current virtual
     103      terminal, normally tty1, and start the graphical environment on the first
     104      available unused virtual terminal, normally tty7.  To do this, set the suid bit
     105      on the Xorg application as the  <systemitem
     106      class="username">root</systemitem> user:</para>
     107     
     108<screen><userinput>chmod u+s $XORG_PREFIX/libexec/Xorg</userinput></screen>
     109
     110      <para>At this point you can start Xorg on virtual terminal 7 with
     111      <command>startx &lt;client arguments&gt; -- vt7</command>.  Now
     112      you can toggle between tty1 and tty7 with the Ctrl-Alt-F1 and
     113      Ctrl-Alt-F7 key combinations.</para>
     114     
     115      <para>To automatically start Xorg on the first available virtual terminal,
     116      modify the <command>startx</command> script as the  <systemitem
     117      class="username">root</systemitem> user with:</para>
     118     
     119<screen><userinput>sed -e '/$serverargs $vtarg/ s/serverargs/: #&amp;/' $XORG_PREFIX/bin/startx</userinput></screen>
     120
     121      <para>After this change, the virtual terminal does not need to be
     122      specified on the startx command line.</para>
     123
     124    </note>
    116125
    117126  </sect2>
  • x/installing/xorg-server.xml

    rd9951ba r27373006  
    182182      legacy driver support on rootless xserver systems.
    183183    </para>
    184 <!--
    185     <para>
    186       <option>- -disable-systemd-logind - -enable-install-setuid</option>:
    187       These switches disable <phrase revision="systemd">systemd-logind</phrase>
    188       <phrase revision="sysv">elogind</phrase> integration and restore the
    189       setuid bit to the Xorg executable, allowing Xorg Server to work
    190       without having the <phrase revision="systemd">systemd</phrase>
     184
     185    <para>
     186      <option>--disable-systemd-logind</option>:
     187      This switch disables <phrase revision="systemd">systemd-logind</phrase>
     188      <phrase revision="sysv">elogind</phrase> integration allowing Xorg Server
     189      to work without having the <phrase revision="systemd">systemd</phrase>
    191190      <phrase revision="elogind">elogind</phrase> PAM module configured.
    192191    </para>
    193 -->
     192
     193    <para>
     194      <option>--enable-install-setuid</option>:
     195      This switch restores the setuid bit to the Xorg executable allowing Xorg
     196      Server to work with a virtual terminal designated on the
     197      <command>startx</command> command line.
     198    </para>
     199
    194200    <para revision="sysv">
    195201      <command>cat &gt;&gt; /etc/sysconfig/createfiles...</command>: This
Note: See TracChangeset for help on using the changeset viewer.