Changeset 2115e38


Ignore:
Timestamp:
01/02/2023 11:59:06 PM (16 months ago)
Author:
Tim Tassonis <stuff@…>
Branches:
11.3, 12.0, 12.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, xry111/llvm18, xry111/xf86-video-removal
Children:
e8e00904
Parents:
0433493
Message:

Describe how to build and setup dhcpcd with or without privilege separation.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • introduction/welcome/changelog.xml

    r0433493 r2115e38  
    4343      <itemizedlist>
    4444        <listitem>
     45          <para>[timtas] - Describe how to build and setup dhcpcd with or
     46          without privilege separation.</para>
     47        </listitem>
     48        <listitem>
    4549          <para>[bdubbs] - Update to fontforge-20230101. Fixes
    4650          <ulink url="&blfs-ticket-root;17465">#17465</ulink>.</para>
  • networking/connect/dhcpcd.xml

    r0433493 r2115e38  
    9292  </sect2>
    9393
    94   <sect2 role="installation">
    95     <title>Installation of dhcpcd</title>
    96 
    97     <para>
    98       Recent releases of <application>dhcpcd</application> implement privilege
    99       separation. Additional installation steps are necessary to set up
    100       the proper environment, which are performed by issuing the following
    101       commands as the <systemitem class="username">root</systemitem> user:
     94  <sect2 id='dhcpcd-privsep'>
     95    <title>Privilege separation</title>
     96
     97    <para>
     98      Recent releases of <application>dhcpcd</application> optionally support
     99      privilege separation. As the practical security benefits of this are
     100      unclear for a program like <application>dhcpcd</application> and the
     101      setup is more complicated, the book currently defaults to disable it.
     102    </para>
     103    <para>
     104      If you however would like to use privilege separation, additional
     105      installation steps are necessary to set up the proper environment. Issue
     106      the following commands as the
     107      <systemitem class="username">root</systemitem> user:
    102108    </para>
    103109
     
    112118chown    -v dhcpcd:dhcpcd /var/lib/dhcpcd </userinput></screen>
    113119
     120  </sect2>
     121
     122  <sect2 role="installation">
     123    <title>Installation of dhcpcd</title>
     124
    114125    <para>Fix a runtime error caused by a change in glibc-2.36:</para>
    115126
     
    118129
    119130    <para>
    120       Install <application>dhcpcd</application> by running the following
    121       commands:
     131      Build <application>dhcpcd</application> without privilege separation
     132      by running the following command:
     133    </para>
     134
     135<screen><userinput>./configure --prefix=/usr                \
     136            --sysconfdir=/etc            \
     137            --libexecdir=/usr/lib/dhcpcd \
     138            --dbdir=/var/lib/dhcpcd      \
     139            --runstatedir=/run           \
     140            --disable-privsep         &amp;&amp;
     141make</userinput></screen>
     142
     143    <para>
     144      Build <application>dhcpcd</application> with privilege separation
     145      by running the following commands:
    122146    </para>
    123147
     
    171195      <filename class="directory">/var/run</filename> is a symbolic
    172196      link to <filename class="directory">/run</filename>.
     197    </para>
     198
     199    <para>
     200      <option>--with-hook=...</option>: You can optionally install more hooks,
     201      for example to install some configuration files such as
     202      <filename>ntp.conf</filename>. The set of hooks is in the
     203      <filename class="directory">dhcpcd-hooks</filename> directory in the
     204      build tree.
     205    </para>
     206
     207    <para>
     208      <parameter>--disable-privsep</parameter>: Do not use privileg separation,
     209      which is the default.
     210    </para>
     211
     212    <para>
     213      <parameter>--privsepuser=dhcpcd</parameter>: Use this unpriviled user
     214      in a privilege separation setup.
    173215    </para>
    174216
Note: See TracChangeset for help on using the changeset viewer.