Changeset 3261d55d


Ignore:
Timestamp:
07/20/2012 03:52:34 PM (12 years ago)
Author:
Krejzi <krejzi@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
be522520
Parents:
bcd2922
Message:

Update to ConsoleKit 0.4.6 git snapshot in order to get udev-acl tool which was removed from udev 182+ and really fix it's behaviour.

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

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    rbcd2922 r3261d55d  
    44-->
    55
    6 <!ENTITY day          "19">                   <!-- Always 2 digits -->
     6<!ENTITY day          "20">                   <!-- Always 2 digits -->
    77<!ENTITY month        "07">                   <!-- Always 2 digits -->
    88<!ENTITY year         "2012">
     
    1010<!ENTITY copyholder   "The BLFS Development Team">
    1111<!ENTITY version      "&year;-&month;-&day;">
    12 <!ENTITY releasedate  "July 19th, &year;">
     12<!ENTITY releasedate  "July 20th, &year;">
    1313<!-- <!ENTITY releasedate  "November &day;st, &year;"> -->
    1414<!ENTITY pubdate      "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
     
    121121<!ENTITY acl-version                  "2.2.51">
    122122<!ENTITY attr-version                 "2.4.46">
    123 <!ENTITY consolekit-version           "0.4.5">
     123<!ENTITY consolekit-version           "0.4.6">
    124124<!ENTITY cracklib-version             "2.8.19">
    125125<!ENTITY cyrus-sasl-version           "2.1.25">
  • gnome/core/gnome-bluetooth.xml

    rbcd2922 r3261d55d  
    127127
    128128<screen role="root"><userinput>make install</userinput></screen>
     129
     130    <para>
     131      Create <application>Udev</application> rule that will allow
     132      normal users to write to <filename>/dev/rfkill</filename>
     133      with the following command as the
     134      <systemitem class="username">root</systemitem> user:
     135    </para>
     136
     137<screen role="root"><userinput>cat &gt; /lib/udev/rules.d/61-gnome-bluetooth.rules &lt;&lt; "EOF"
     138# Get access to /dev/rfkill for users
     139# See https://bugzilla.redhat.com/show_bug.cgi?id=514798
     140#
     141# Updated for udev &gt;= 154
     142# http://bugs.debian.org/582188
     143# https://bugzilla.redhat.com/show_bug.cgi?id=588660
     144
     145ENV{ACL_MANAGE}=="0", GOTO="gnome_bluetooth_end"
     146ACTION!="add|change", GOTO="gnome_bluetooth_end"
     147KERNEL=="rfkill", TAG+="udev-acl"
     148LABEL="gnome_bluetooth_end"
     149EOF</userinput></screen>
    129150
    130151  </sect2>
  • introduction/welcome/changelog.xml

    rbcd2922 r3261d55d  
    4343-->
    4444    <listitem>
     45      <para>July 20th, 2012</para>
     46      <itemizedlist>
     47        <listitem>
     48          <para>[krejzi] - Upgraded ConsoleKit to 0.4.6 (git snapshot).</para>
     49        </listitem>
     50      </itemizedlist>
     51    </listitem>
     52
     53    <listitem>
    4554      <para>July 19th, 2012</para>
    4655      <itemizedlist>
  • postlfs/security/consolekit.xml

    rbcd2922 r3261d55d  
    55  %general-entities;
    66
    7   <!ENTITY consolekit-download-http "http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-&consolekit-version;.tar.bz2">
     7  <!ENTITY consolekit-download-http "http://www.linuxfromscratch.org/~krejzi/ConsoleKit-&consolekit-version;.tar.xz">
    88  <!ENTITY consolekit-download-ftp  " ">
    9   <!ENTITY consolekit-md5sum        "f2657f93761206922d558471a936fbc3">
    10   <!ENTITY consolekit-size          "416 KB">
    11   <!ENTITY consolekit-buildsize     "8.1 MB">
     9  <!ENTITY consolekit-md5sum        "6aaadf5627d2f7587aa116727e2fc1da">
     10  <!ENTITY consolekit-size          "356 KB">
     11  <!ENTITY consolekit-buildsize     "8.0 MB">
    1212  <!ENTITY consolekit-time          "0.3 SBU">
    1313]>
     
    3030    <title>Introduction to ConsoleKit</title>
    3131
    32     <para>The <application>ConsoleKit</application> package is a framework for
    33     keeping track of the various users, sessions, and seats present on a system.
    34     It provides a mechanism for software to react to changes of any of these
    35     items or of any of the metadata associated with them.</para>
    36 
    37     &lfs70_checked;
     32    <para>
     33      The <application>ConsoleKit</application> package is a framework for
     34      keeping track of the various users, sessions, and seats present on a system.
     35      It provides a mechanism for software to react to changes of any of these
     36      items or of any of the metadata associated with them.
     37    </para>
     38
     39    &lfs71_checked;
    3840
    3941    <bridgehead renderas="sect3">Package Information</bridgehead>
    4042    <itemizedlist spacing="compact">
    4143      <listitem>
    42         <para>Download (HTTP): <ulink url="&consolekit-download-http;"/></para>
    43       </listitem>
    44       <listitem>
    45         <para>Download (FTP): <ulink url="&consolekit-download-ftp;"/></para>
    46       </listitem>
    47       <listitem>
    48         <para>Download MD5 sum: &consolekit-md5sum;</para>
    49       </listitem>
    50       <listitem>
    51         <para>Download size: &consolekit-size;</para>
    52       </listitem>
    53       <listitem>
    54         <para>Estimated disk space required: &consolekit-buildsize;</para>
    55       </listitem>
    56       <listitem>
    57         <para>Estimated build time: &consolekit-time;</para>
     44        <para>
     45          Download (HTTP): <ulink url="&consolekit-download-http;"/>
     46        </para>
     47      </listitem>
     48      <listitem>
     49        <para>
     50          Download (FTP): <ulink url="&consolekit-download-ftp;"/>
     51        </para>
     52      </listitem>
     53      <listitem>
     54        <para>
     55          Download MD5 sum: &consolekit-md5sum;
     56        </para>
     57      </listitem>
     58      <listitem>
     59        <para>
     60          Download size: &consolekit-size;
     61        </para>
     62      </listitem>
     63      <listitem>
     64        <para>
     65          Estimated disk space required: &consolekit-buildsize;
     66        </para>
     67      </listitem>
     68      <listitem>
     69        <para>
     70          Estimated build time: &consolekit-time;
     71        </para>
    5872      </listitem>
    5973    </itemizedlist>
     
    7488
    7589    <warning>
    76       <para>If you intend <emphasis role="strong">NOT</emphasis> to install
    77       <application>polkit</application>, you will need to manually edit the
    78       ConsoleKit.conf file to lock down the service. Failure to do so may be a
    79       huge SECURITY HOLE.</para>
     90      <para>
     91        If you intend <emphasis role="strong">NOT</emphasis> to install
     92        <application>polkit</application>, you will need to manually edit the
     93        ConsoleKit.conf file to lock down the service. Failure to do so may be a
     94        huge SECURITY HOLE.
     95      </para>
    8096    </warning>
    8197
     
    86102
    87103    <para condition="html" role="usernotes">User Notes:
    88     <ulink url="&blfs-wiki;/consolekit"/></para>
    89 
     104      <ulink url="&blfs-wiki;/consolekit"/>
     105    </para>
    90106  </sect2>
    91107
     
    93109    <title>Installation of ConsoleKit</title>
    94110
    95     <para>Install <application>ConsoleKit</application> by running the following
    96     commands:</para>
    97 
    98 <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
    99             --localstatedir=/var --libexecdir=/usr/lib/ConsoleKit \
     111    <para>
     112      Install <application>ConsoleKit</application> by running the following
     113      commands:
     114    </para>
     115
     116<screen><userinput>./configure --prefix=/usr \
     117            --sysconfdir=/etc \
     118            --localstatedir=/var \
     119            --libexecdir=/usr/lib/ConsoleKit \
     120            --enable-udev-acl \
    100121            --enable-pam-module &amp;&amp;
    101122make</userinput></screen>
    102123
    103     <para>This package does not come with a test suite.</para>
    104 
    105     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
     124    <para>
     125      This package does not come with a test suite.
     126    </para>
     127
     128    <para>
     129      Now, as the <systemitem class="username">root</systemitem> user:
     130    </para>
    106131
    107132<screen role="root"><userinput>make install</userinput></screen>
     
    112137    <title>Command Explanations</title>
    113138
    114     <para><parameter>--enable-pam-module</parameter>: This switch enables
    115     <application>ConsoleKit</application> to use
    116     <application>Linux-PAM</application> authentication. Remove this option if
    117     <application>Linux-PAM</application> is
    118     <emphasis role="strong">NOT</emphasis> installed.</para>
    119 
    120     <para><option>--enable-docbook-docs</option>: Use this parameter if
    121     <application>xmlto</application> is installed and you wish to build the API
    122     documentation.</para>
     139    <para>
     140      <option>--enable-udev-acl</option>: This switch enables building of the
     141      <command>udev-acl</command> tool which is used to allow normal users
     142      to access device nodes which can be accessed by
     143      <systemitem class="username">root</systemitem> user only.
     144    </para>
     145
     146    <para>
     147      <option>--enable-pam-module</option>: This switch enables building of the
     148      <application>ConsoleKit</application> <application>PAM</application>
     149      module which is needed for <application>ConsoleKit</application> to
     150      work correctly. Remove if <application>Linux PAM</application> is
     151      <emphasis role="strong">NOT</emphasis> installed.
     152    </para>
     153
     154    <para>
     155      <option>--enable-docbook-docs</option>: Use this parameter if
     156      <application>xmlto</application> is installed and you wish to
     157      build the API documentation.
     158    </para>
    123159
    124160  </sect2>
     
    127163    <title>Configuring ConsoleKit</title>
    128164
    129     <sect3 id="ConsoleKit-config">
    130       <title>Config Files</title>
    131       <para><filename>/etc/dbus-1/system.d/ConsoleKit.conf</filename></para>
    132 
    133       <indexterm zone="consolekit ConsoleKit-config">
    134         <primary sortas="e-etc-ConsoleKit-ConsoleKit.conf">/etc/dbus-1/system.d/ConsoleKit.conf</primary>
    135       </indexterm>
    136     </sect3>
    137 
    138     <sect3><title>Configuration Information</title>
     165    <sect3>
     166      <title>PAM Module Configuration</title>
    139167   
    140       <para>If you use <application>PAM</application> you need to configure
    141       <application>PAM</application> to activate <application>ConsoleKit
    142       </application> upon user login. This can be achieved by editing the
    143       <filename>/etc/pam.d/system-session</filename> file as the
    144       <systemitem class="username">root</systemitem> user:</para>
     168      <para>
     169        If you use <application>Linux PAM</application> you need to
     170        configure <application>Linux PAM</application> to activate
     171        <application>ConsoleKit</application> upon user login.
     172        This can be achieved by editing the
     173        <filename>/etc/pam.d/system-session</filename> file as the
     174        <systemitem class="username">root</systemitem> user:
     175      </para>
    145176   
    146177<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/system-session &lt;&lt; "EOF"
     
    152183# End ConsoleKit addition
    153184EOF</userinput></screen>
    154    
    155       <para>See /usr/share/doc/ConsoleKit/spec/ConsoleKit.html for more
    156       configuration.</para>
     185
     186      <para>
     187        You will also need a helper script that will create a file in
     188        <filename class="directory">/var/run/console</filename>
     189        named as username that is logged in that contains
     190        <application>D-Bus</application> address of the session. Create
     191        such script by running the following commands as the
     192        <systemitem class="username">root</systemitem> user:
     193      </para>
     194
     195<screen role="root"><userinput>cat &gt; /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck &lt;&lt; "EOF"
     196#!/bin/sh
     197TAGDIR=/var/run/console
     198
     199[ -n "$CK_SESSION_USER_UID" ] || exit 1
     200[ "$CK_SESSION_IS_LOCAL" = "true" ] || exit 0
     201
     202TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`"
     203
     204if [ "$1" = "session_added" ]; then
     205    mkdir -p "$TAGDIR"
     206    echo "$CK_SESSION_ID" &gt;&gt; "$TAGFILE"
     207fi
     208
     209if [ "$1" = "session_removed" ] &amp;&amp; [ -e "$TAGFILE" ]; then
     210    sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE"
     211    [ -s "$TAGFILE" ] || rm -f "$TAGFILE"
     212fi
     213EOF
     214chmod 0755 /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck</userinput></screen>
     215
     216      <para>
     217        See /usr/share/doc/ConsoleKit/spec/ConsoleKit.html for more
     218        configuration.
     219      </para>
    157220
    158221    </sect3>
     
    169232
    170233      <seglistitem>
    171         <seg>ck-history, ck-launch-session, ck-list-sessions,
    172         ck-log-system-restart, ck-log-system-start, ck-log-system-stop,
    173         console-kit-daemon, ck-collect-session-info, ck-get-x11-display-device,
    174         ck-get-x11-server-pid, ck-system-restart, and ck-system-stop</seg>
    175         <seg>libck-connector.so and pam_ck_connector.so</seg>
    176         <seg>/etc/ConsoleKit/{run-seat.d,run-session.d,seats.d},
    177         /usr/{include/ConsoleKit/ck-connector,lib/ConsoleKit/{run-seat.d,
    178         run-session.d,scripts},share/doc/ConsoleKit/spec}</seg>
     234        <seg>
     235          ck-history, ck-launch-session, ck-list-sessions,
     236          ck-log-system-restart, ck-log-system-start,
     237          ck-log-system-stop and console-kit-daemon
     238        </seg>
     239        <seg>
     240          libck-connector.so and pam_ck_connector.so
     241        </seg>
     242        <seg>
     243          /etc/ConsoleKit,
     244          /usr/include/ConsoleKit,
     245          /usr/lib/ConsoleKit,
     246          /usr/share/doc/ConsoleKit and
     247          /var/log/ConsoleKit
     248        </seg>
    179249      </seglistitem>
    180250    </segmentedlist>
Note: See TracChangeset for help on using the changeset viewer.