libcap.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. <sect1 id="ch-system-libcap" role="wrap">
  8. <?dbhtml filename="libcap.html"?>
  9. <sect1info condition="script">
  10. <productname>libcap</productname>
  11. <productnumber>&libcap-version;</productnumber>
  12. <address>&libcap-url;</address>
  13. </sect1info>
  14. <title>Libcap-&libcap-version;</title>
  15. <indexterm zone="ch-system-libcap">
  16. <primary sortas="a-Libcap">Libcap</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Libcap package implements the user-space interfaces to the POSIX
  21. 1003.1e capabilities available in Linux kernels. These capabilities are a
  22. partitioning of the all powerful root privilege into a set of distinct
  23. privileges.</para>
  24. <segmentedlist>
  25. <segtitle>&buildtime;</segtitle>
  26. <segtitle>&diskspace;</segtitle>
  27. <seglistitem>
  28. <seg>&libcap-ch6-sbu;</seg>
  29. <seg>&libcap-ch6-du;</seg>
  30. </seglistitem>
  31. </segmentedlist>
  32. </sect2>
  33. <sect2 role="installation">
  34. <title>Installation of Libcap</title>
  35. <para>Compile the package:</para>
  36. <screen><userinput remap="make">make</userinput></screen>
  37. <para>This package does not come with a test suite.</para>
  38. <para>Install the package:</para>
  39. <screen><userinput remap="install">make RAISE_SETFCAP=no prefix=/usr install
  40. chmod -v 755 /usr/lib/libcap.so</userinput></screen>
  41. <para>The shared library needs to be moved to
  42. <filename class="directory">/lib</filename>, and as a result the
  43. <filename class="extension">.so</filename> file in
  44. <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
  45. <screen><userinput remap="install">mv -v /usr/lib/libcap.so.* /lib
  46. ln -sfv ../../lib/$(readlink /usr/lib/libcap.so) /usr/lib/libcap.so</userinput></screen>
  47. </sect2>
  48. <sect2 id="contents-libcap" role="content">
  49. <title>Contents of Libcap</title>
  50. <segmentedlist>
  51. <segtitle>Installed programs</segtitle>
  52. <segtitle>Installed library</segtitle>
  53. <seglistitem>
  54. <seg>capsh, getcap, getpcaps, and setcap</seg>
  55. <seg>libcap.{a,so}</seg>
  56. </seglistitem>
  57. </segmentedlist>
  58. <variablelist>
  59. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  60. <?dbfo list-presentation="list"?>
  61. <?dbhtml list-presentation="table"?>
  62. <varlistentry id="capsh">
  63. <term><command>capsh</command></term>
  64. <listitem>
  65. <para>A shell wrapper to explore and constrain capability support</para>
  66. <indexterm zone="ch-system-libcap capsh">
  67. <primary sortas="b-capsh">capsh</primary>
  68. </indexterm>
  69. </listitem>
  70. </varlistentry>
  71. <varlistentry id="getcap">
  72. <term><command>getcap</command></term>
  73. <listitem>
  74. <para>Examines file capabilities</para>
  75. <indexterm zone="ch-system-libcap getcap">
  76. <primary sortas="b-getcap">getcap</primary>
  77. </indexterm>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry id="getpcaps">
  81. <term><command>getpcaps</command></term>
  82. <listitem>
  83. <para>Displays the capabilities on the queried process(es)</para>
  84. <indexterm zone="ch-system-libcap getpcaps">
  85. <primary sortas="b-getpcaps">getpcaps</primary>
  86. </indexterm>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="libcap">
  90. <term><filename class="libraryfile">libcap</filename></term>
  91. <listitem>
  92. <para>Contains the libcap API functions</para>
  93. <indexterm zone="ch-system-libcap libcap">
  94. <primary sortas="c-libcap">libcap</primary>
  95. </indexterm>
  96. </listitem>
  97. </varlistentry>
  98. </variablelist>
  99. </sect2>
  100. </sect1>