2011-11-10 08:14:36 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
|
|
|
<!-- Change to kernel.org when it gets back there. -->
|
|
|
|
<!ENTITY libcap2-download-http "http://ftp.de.debian.org/debian/pool/main/libc/libcap2/libcap2_&libcap2-version;.orig.tar.gz">
|
2013-02-12 02:51:17 +08:00
|
|
|
<!ENTITY libcap2-download-ftp "ftp://ftp.de.debian.org/debian/pool/main/libc/libcap2/libcap2_&libcap2-version;.orig.tar.gz">
|
2011-11-10 08:14:36 +08:00
|
|
|
<!ENTITY libcap2-md5sum "b4896816b626bea445f0b3849bdd4077">
|
|
|
|
<!ENTITY libcap2-size "72 KB">
|
|
|
|
<!ENTITY libcap2-buildsize "1.3 MB">
|
|
|
|
<!ENTITY libcap2-time "less than 0.1 SBU">
|
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="libcap2" xreflabel="libcap2-&libcap2-version;">
|
|
|
|
<?dbhtml filename="libcap2.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
2012-01-24 11:05:41 +08:00
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2011-11-10 08:14:36 +08:00
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>libcap2-&libcap2-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="libcap2">
|
|
|
|
<primary sortas="a-libcap2">libcap2</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to libcap2</title>
|
|
|
|
|
|
|
|
<para>The <application>libcap2</application> package implements the
|
|
|
|
user-space interfaces to the POSIX 1003.1e capabilities available in Linux
|
|
|
|
kernels. These capabilities are a partitioning of the all powerful root
|
|
|
|
privilege into a set of distinct privileges. </para>
|
|
|
|
|
2013-08-21 06:41:29 +08:00
|
|
|
&lfs74_checked;
|
2011-11-10 08:14:36 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&libcap2-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&libcap2-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &libcap2-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &libcap2-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &libcap2-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &libcap2-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">libcap2 Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required"><xref linkend="attr"/></para>
|
|
|
|
|
2013-05-30 04:04:43 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional"><xref linkend="linux-pam"/></para>
|
|
|
|
|
2011-11-10 08:14:36 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/libcap2"/></para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of libcap2</title>
|
|
|
|
|
|
|
|
<para>Install <application>libcap2</application> by running the following
|
|
|
|
commands:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
|
|
|
<para>This package does not come with a test suite.</para>
|
2013-05-30 03:40:28 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
If you want to disable installing the static library, use this sed:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>sed -i '/install.*STALIBNAME/ s/^/#/' libcap/Makefile</userinput></screen>
|
|
|
|
|
2011-11-10 08:14:36 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
2011-12-28 03:25:50 +08:00
|
|
|
<screen role="root"><userinput>make RAISE_SETFCAP=no install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
2013-02-12 02:51:17 +08:00
|
|
|
|
2011-12-28 03:25:50 +08:00
|
|
|
<para><parameter>RAISE_SETFCAP=no</parameter>: This parameter skips trying
|
2013-02-12 02:51:17 +08:00
|
|
|
to use <application>setcap</application> on itself. This avoids an installation
|
2011-12-28 03:25:50 +08:00
|
|
|
error if the kernel or file system do not support extended capabilities.</para>
|
2011-11-10 08:14:36 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>capsh, getcap, getpcaps, and setcap</seg>
|
|
|
|
<seg>libcap.{so,a}</seg>
|
|
|
|
<seg>None</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="capsh">
|
|
|
|
<term><command>capsh</command></term>
|
|
|
|
<listitem>
|
2013-07-06 02:04:24 +08:00
|
|
|
<para>is a shell wrapper to explore and constrain capability support.</para>
|
2011-11-10 08:14:36 +08:00
|
|
|
<indexterm zone="libcap2 capsh">
|
|
|
|
<primary sortas="b-capsh">capsh</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="getcap">
|
|
|
|
<term><command>getcap</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>examines file capabilities.</para>
|
|
|
|
<indexterm zone="libcap2 getcap">
|
|
|
|
<primary sortas="b-getcap">getcap</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="getpcaps">
|
|
|
|
<term><command>getpcaps</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>displays the capabilities on the queried process(es).</para>
|
|
|
|
<indexterm zone="libcap2 getpcaps">
|
|
|
|
<primary sortas="b-getpcaps">getpcaps</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="setcap">
|
|
|
|
<term><command>setcap</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>sets file file capabilities.</para>
|
|
|
|
<indexterm zone="libcap2 setcap">
|
|
|
|
<primary sortas="b-setcap">setcap</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libcap2-lib">
|
2013-06-02 00:03:00 +08:00
|
|
|
<term><filename class='libraryfile'>libcap.{so,a}</filename></term>
|
2011-11-10 08:14:36 +08:00
|
|
|
<listitem>
|
|
|
|
<para>contains the <application>libcap2</application> API functions.</para>
|
|
|
|
<indexterm zone="libcap2 libcap2-lib">
|
2013-06-02 00:03:00 +08:00
|
|
|
<primary sortas="c-libcap2">libcap.{so,a}</primary>
|
2011-11-10 08:14:36 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|