Changeset 27373006


Ignore:
Timestamp:
08/01/2019 07:17:08 PM (2 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 9.0, 9.1, ken/refactor-virt, lazarus, qt5new, trunk, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
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

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    rd9951ba r27373006  
    11<!-- $LastChangedBy$ $Date$ -->
    22
    3 <!ENTITY day          "31">                   <!-- Always 2 digits -->
    4 <!ENTITY month        "07">                   <!-- Always 2 digits -->
     3<!ENTITY day          "01">                   <!-- Always 2 digits -->
     4<!ENTITY month        "08">                   <!-- Always 2 digits -->
    55<!ENTITY year         "2019">
    66<!ENTITY copyrightdate "2001-&year;">
    77<!ENTITY copyholder   "The BLFS Development Team">
    88<!ENTITY version      "&year;-&month;-&day;">
    9 <!ENTITY releasedate  "July 31st, &year;">
     9<!ENTITY releasedate  "August 1st, &year;">
    1010<!ENTITY pubdate      "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
    1111<!ENTITY blfs-version "svn">                  <!-- svn|[release #] -->
  • introduction/welcome/changelog.xml

    rd9951ba r27373006  
    4444
    4545    <listitem>
    46       <para>July 30th, 2019</para>
     46      <para>August 1st, 2019</para>
     47      <itemizedlist>
     48        <listitem>
     49          <para>[bdubbs] - Modify xorg-server and xinit instructions to
     50          avoid using the suid bit on the Xorg application.  Add a note
     51          to xinit on why using Xorg with the suid bit set may be useful.
     52          </para>
     53        </listitem>
     54      </itemizedlist>
     55    </listitem>
     56
     57    <listitem>
     58      <para>July 31st, 2019</para>
    4759      <itemizedlist>
    4860        <listitem>
  • 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.