source: BOOK/final-system/common/libcap.xml@ b1448646

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since b1448646 was 6c258e2, checked in by Chris Staub <chris@…>, 11 years ago

Tweaks to libcap instructions

  • Property mode set to 100644
File size: 3.6 KB
RevLine 
[a1a1cf0]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
8<sect1 id="ch-system-libcap" role="wrap">
9 <?dbhtml filename="libcap.html"?>
10
11 <title>Libcap-&libcap-version;</title>
12
13 <indexterm zone="ch-system-libcap">
14 <primary sortas="a-Libcap">Libcap</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>Libcap is a library for getting and setting POSIX.1e
21 (formerly POSIX 6) draft 15 capabilities.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Libcap</title>
27
[d4764b6]28 <para os="p1">Apply the following patch to fix a problem with Libcap's
29 installed header files:</para>
30
31<screen os="p2"><userinput>patch -Np1 -i ../libcap-&libcap-version;-uapi-1.patch</userinput></screen>
32
[a1a1cf0]33 <para os="a">Compile the package:</para>
34
35<screen os="b"><userinput>make</userinput></screen>
36
37 <para os="c">This package does not come with a test suite.</para>
38
39 <para os="d">Install the package:</para>
40
[6c258e2]41<screen os="e"><userinput>make RAISE_SETFCAP=no install
[a1a1cf0]42chmod -v 755 /lib/libcap.so.&libcap-version;
[6c258e2]43rm -v /lib/libcap.so
[a1a1cf0]44ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so
45mv -v /lib/libcap.a /usr/lib</userinput></screen>
46
47 </sect2>
48
49 <sect2 id="contents-libcap" role="content">
50 <title>Contents of Libcap</title>
51
52 <segmentedlist>
53 <segtitle>Installed programs</segtitle>
54 <segtitle>Installed libraries</segtitle>
55
56 <seglistitem>
57 <seg>capsh, setcap, getpcaps, getcap</seg>
58 <seg>libcap.[a,so]</seg>
59 </seglistitem>
60 </segmentedlist>
61
62 <variablelist>
63 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
64 <?dbfo list-presentation="list"?>
65 <?dbhtml list-presentation="table"?>
66
67 <varlistentry id="capsh">
68 <term><command>capsh</command></term>
69 <listitem>
70 <para>Capability support and use can be explored and constrained
71 with this tool</para>
72 <indexterm zone="ch-system-libcap capsh">
73 <primary sortas="b-capsh">capsh</primary>
74 </indexterm>
75 </listitem>
76 </varlistentry>
77
78 <varlistentry id="setcap">
79 <term><command>setcap</command></term>
80 <listitem>
81 <para>Sets file capabilities</para>
82 <indexterm zone="ch-system-libcap setcap">
83 <primary sortas="b-setcap">setcap</primary>
84 </indexterm>
85 </listitem>
86 </varlistentry>
87
88 <varlistentry id="getpcaps">
89 <term><command>getpcaps</command></term>
90 <listitem>
91 <para>Displays the capabilities on the queried process(es)</para>
92 <indexterm zone="ch-system-libcap getpcaps">
93 <primary sortas="b-getpcaps">getpcaps</primary>
94 </indexterm>
95 </listitem>
96 </varlistentry>
97
98 <varlistentry id="getcap">
99 <term><command>getcap</command></term>
100 <listitem>
101 <para>Wxamines file capabilities</para>
102 <indexterm zone="ch-system-libcap getcap">
103 <primary sortas="b-getcap">getcap</primary>
104 </indexterm>
105 </listitem>
106 </varlistentry>
107
108 <varlistentry id="libcap">
109 <term><filename class="libraryfile">libcap</filename></term>
110 <listitem>
111 <para>Library for setting and clearing POSIX.1e capabilities</para>
112 <indexterm zone="ch-system-libcap libcap">
113 <primary sortas="c-libcap">libcap</primary>
114 </indexterm>
115 </listitem>
116 </varlistentry>
117
118 </variablelist>
119
120 </sect2>
121
122</sect1>
Note: See TracBrowser for help on using the repository browser.