[e79ed72] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!-- Change to kernel.org when it gets back there. -->
|
---|
| 8 | <!ENTITY libcap2-download-http "http://ftp.de.debian.org/debian/pool/main/libc/libcap2/libcap2_&libcap2-version;.orig.tar.gz">
|
---|
| 9 | <!ENTITY libcap2-download-ftp "ftp://ftp.de.debian.org/debian/pool/main/libc/libcap2/libcap2_&libcap2-version;.orig.tar.gz">
|
---|
| 10 | <!ENTITY libcap2-md5sum "b4896816b626bea445f0b3849bdd4077">
|
---|
| 11 | <!ENTITY libcap2-size "72 KB">
|
---|
| 12 | <!ENTITY libcap2-buildsize "1.3 MB">
|
---|
| 13 | <!ENTITY libcap2-time "less than 0.1 SBU">
|
---|
| 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="libcap2" xreflabel="libcap2-&libcap2-version;">
|
---|
| 17 | <?dbhtml filename="libcap2.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
[4949485e] | 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
[e79ed72] | 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>libcap2-&libcap2-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="libcap2">
|
---|
| 27 | <primary sortas="a-libcap2">libcap2</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to libcap2</title>
|
---|
| 32 |
|
---|
| 33 | <para>The <application>libcap2</application> package implements the
|
---|
| 34 | user-space interfaces to the POSIX 1003.1e capabilities available in Linux
|
---|
| 35 | kernels. These capabilities are a partitioning of the all powerful root
|
---|
| 36 | privilege into a set of distinct privileges. </para>
|
---|
| 37 |
|
---|
| 38 | &lfs70_checked;
|
---|
| 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&libcap2-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&libcap2-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &libcap2-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &libcap2-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &libcap2-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &libcap2-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect3">libcap2 Dependencies</bridgehead>
|
---|
| 63 |
|
---|
| 64 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 65 | <para role="required"><xref linkend="attr"/></para>
|
---|
| 66 |
|
---|
| 67 | <para condition="html" role="usernotes">User Notes:
|
---|
| 68 | <ulink url="&blfs-wiki;/libcap2"/></para>
|
---|
| 69 |
|
---|
| 70 | </sect2>
|
---|
| 71 |
|
---|
| 72 | <sect2 role="installation">
|
---|
| 73 | <title>Installation of libcap2</title>
|
---|
| 74 |
|
---|
| 75 | <para>Install <application>libcap2</application> by running the following
|
---|
| 76 | commands:</para>
|
---|
| 77 |
|
---|
| 78 | <screen><userinput>make</userinput></screen>
|
---|
| 79 |
|
---|
| 80 | <para>This package does not come with a test suite.</para>
|
---|
| 81 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 82 |
|
---|
[7df66ff] | 83 | <screen role="root"><userinput>make RAISE_SETFCAP=no install</userinput></screen>
|
---|
| 84 |
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="commands">
|
---|
| 88 | <title>Command Explanations</title>
|
---|
| 89 |
|
---|
| 90 | <para><parameter>RAISE_SETFCAP=no</parameter>: This parameter skips trying
|
---|
| 91 | to use <application>setcap</application> on itself. This avoids an installation
|
---|
| 92 | error if the kernel or file system do not support extended capabilities.</para>
|
---|
[e79ed72] | 93 |
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2 role="content">
|
---|
| 97 | <title>Contents</title>
|
---|
| 98 |
|
---|
| 99 | <segmentedlist>
|
---|
| 100 | <segtitle>Installed Programs</segtitle>
|
---|
| 101 | <segtitle>Installed Library</segtitle>
|
---|
| 102 | <segtitle>Installed Directories</segtitle>
|
---|
| 103 |
|
---|
| 104 | <seglistitem>
|
---|
| 105 | <seg>capsh, getcap, getpcaps, and setcap</seg>
|
---|
| 106 | <seg>libcap.{so,a}</seg>
|
---|
| 107 | <seg>None</seg>
|
---|
| 108 | </seglistitem>
|
---|
| 109 | </segmentedlist>
|
---|
| 110 |
|
---|
| 111 | <variablelist>
|
---|
| 112 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 113 | <?dbfo list-presentation="list"?>
|
---|
| 114 | <?dbhtml list-presentation="table"?>
|
---|
| 115 |
|
---|
| 116 | <varlistentry id="capsh">
|
---|
| 117 | <term><command>capsh</command></term>
|
---|
| 118 | <listitem>
|
---|
| 119 | <para>is a shell wrapper to exploredand constraine capability support.</para>
|
---|
| 120 | <indexterm zone="libcap2 capsh">
|
---|
| 121 | <primary sortas="b-capsh">capsh</primary>
|
---|
| 122 | </indexterm>
|
---|
| 123 | </listitem>
|
---|
| 124 | </varlistentry>
|
---|
| 125 |
|
---|
| 126 | <varlistentry id="getcap">
|
---|
| 127 | <term><command>getcap</command></term>
|
---|
| 128 | <listitem>
|
---|
| 129 | <para>examines file capabilities.</para>
|
---|
| 130 | <indexterm zone="libcap2 getcap">
|
---|
| 131 | <primary sortas="b-getcap">getcap</primary>
|
---|
| 132 | </indexterm>
|
---|
| 133 | </listitem>
|
---|
| 134 | </varlistentry>
|
---|
| 135 |
|
---|
| 136 | <varlistentry id="getpcaps">
|
---|
| 137 | <term><command>getpcaps</command></term>
|
---|
| 138 | <listitem>
|
---|
| 139 | <para>displays the capabilities on the queried process(es).</para>
|
---|
| 140 | <indexterm zone="libcap2 getpcaps">
|
---|
| 141 | <primary sortas="b-getpcaps">getpcaps</primary>
|
---|
| 142 | </indexterm>
|
---|
| 143 | </listitem>
|
---|
| 144 | </varlistentry>
|
---|
| 145 |
|
---|
| 146 | <varlistentry id="setcap">
|
---|
| 147 | <term><command>setcap</command></term>
|
---|
| 148 | <listitem>
|
---|
| 149 | <para>sets file file capabilities.</para>
|
---|
| 150 | <indexterm zone="libcap2 setcap">
|
---|
| 151 | <primary sortas="b-setcap">setcap</primary>
|
---|
| 152 | </indexterm>
|
---|
| 153 | </listitem>
|
---|
| 154 | </varlistentry>
|
---|
| 155 |
|
---|
| 156 | <varlistentry id="libcap2-lib">
|
---|
| 157 | <term><filename class='libraryfile'>libcap2.{so,a}</filename></term>
|
---|
| 158 | <listitem>
|
---|
| 159 | <para>contains the <application>libcap2</application> API functions.</para>
|
---|
| 160 | <indexterm zone="libcap2 libcap2-lib">
|
---|
| 161 | <primary sortas="c-libcap2">libcap2.{so,a}</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 | </listitem>
|
---|
| 164 | </varlistentry>
|
---|
| 165 |
|
---|
| 166 | </variablelist>
|
---|
| 167 |
|
---|
| 168 | </sect2>
|
---|
| 169 |
|
---|
| 170 | </sect1>
|
---|