[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[11f3b7e] | 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 | <!ENTITY libseccomp-download-http "https://github.com/seccomp/libseccomp/releases/download/v&libseccomp-version;/libseccomp-&libseccomp-version;.tar.gz">
|
---|
| 8 | <!ENTITY libseccomp-download-ftp " ">
|
---|
[df0fbdb] | 9 | <!ENTITY libseccomp-md5sum "c27a5e43cae1e89e6ebfedeea734c9b4">
|
---|
| 10 | <!ENTITY libseccomp-size "628 KB">
|
---|
| 11 | <!ENTITY libseccomp-buildsize "7.1 MB (additional 4.7 MB for tests)">
|
---|
| 12 | <!ENTITY libseccomp-time "less than 0.1 SBU (additional 2.9 SBU for tests)">
|
---|
[11f3b7e] | 13 | <!-- EDITORS NOTE:
|
---|
[8558044] | 14 | This library is heavily dependent on system calls at the time of it's release.
|
---|
[11f3b7e] | 15 | This should be tested with every new minor (v4.13, v4.14, etc.) release
|
---|
| 16 | of the kernel, as it is very finicky and relies on hacks to accomplish
|
---|
| 17 | it's purpose. -->
|
---|
| 18 | ]>
|
---|
| 19 |
|
---|
| 20 | <sect1 id="libseccomp" xreflabel="libseccomp-&libseccomp-version;">
|
---|
| 21 | <?dbhtml filename="libseccomp.html"?>
|
---|
| 22 |
|
---|
| 23 |
|
---|
| 24 | <title>libseccomp-&libseccomp-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="libseccomp">
|
---|
| 27 | <primary sortas="a-libseccomp">libseccomp</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to libseccomp</title>
|
---|
| 32 |
|
---|
| 33 | <para>
|
---|
| 34 | The <application>libseccomp</application> package provides an easy to use
|
---|
| 35 | and platform independent interface to the <application>Linux</application>
|
---|
| 36 | kernel's syscall filtering mechanism.
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
[f4734425] | 39 | &lfs122_checked;
|
---|
[11f3b7e] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&libseccomp-download-http;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&libseccomp-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download MD5 sum: &libseccomp-md5sum;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Download size: &libseccomp-size;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated disk space required: &libseccomp-buildsize;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
| 70 | Estimated build time: &libseccomp-time;
|
---|
| 71 | </para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect3">libseccomp Dependencies</bridgehead>
|
---|
[1ace57a] | 76 |
|
---|
[11f3b7e] | 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 78 | <para role="optional">
|
---|
[f4f45ce] | 79 | <xref linkend="which"/> (needed for tests),
|
---|
[11f3b7e] | 80 | <xref linkend="valgrind"/>,
|
---|
[05355b8] | 81 | <!--<xref linkend="cython"/> (for python bindings), -->and
|
---|
[b41433b] | 82 | <ulink url="https://github.com/linux-test-project/lcov">LCOV</ulink>
|
---|
[11f3b7e] | 83 | </para>
|
---|
| 84 |
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
| 88 | <title>Installation of libseccomp</title>
|
---|
| 89 |
|
---|
| 90 | <para>
|
---|
| 91 | Install <application>libseccomp</application> by running the following
|
---|
| 92 | commands:
|
---|
| 93 | </para>
|
---|
| 94 |
|
---|
| 95 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
| 96 | make</userinput></screen>
|
---|
| 97 |
|
---|
| 98 | <para>
|
---|
| 99 | To test the results, issue: <command>make check</command>.
|
---|
| 100 | </para>
|
---|
| 101 |
|
---|
| 102 | <para>
|
---|
| 103 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 104 | </para>
|
---|
| 105 |
|
---|
| 106 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 107 | </sect2>
|
---|
| 108 |
|
---|
| 109 | <sect2 role="commands">
|
---|
| 110 | <title>Command Explanations</title>
|
---|
| 111 |
|
---|
| 112 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 113 | href="../../xincludes/static-libraries.xml"/>
|
---|
[05355b8] | 114 | <!--
|
---|
[4e142ae8] | 115 | <para>
|
---|
[05355b8] | 116 | <option>- -enable-python</option>: this switch is needed to build
|
---|
[7b459c22] | 117 | python bindings if <xref linkend="cython"/> is installed.
|
---|
[4e142ae8] | 118 | </para>
|
---|
[05355b8] | 119 | -->
|
---|
[11f3b7e] | 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 | <sect2 role="content">
|
---|
| 123 | <title>Contents</title>
|
---|
| 124 |
|
---|
| 125 | <segmentedlist>
|
---|
| 126 | <segtitle>Installed Program</segtitle>
|
---|
| 127 | <segtitle>Installed Library</segtitle>
|
---|
| 128 | <segtitle>Installed Directories</segtitle>
|
---|
| 129 |
|
---|
| 130 | <seglistitem>
|
---|
| 131 | <seg>
|
---|
| 132 | scmp_sys_resolver
|
---|
| 133 | </seg>
|
---|
| 134 | <seg>
|
---|
| 135 | libseccomp.so
|
---|
| 136 | </seg>
|
---|
| 137 | <seg>
|
---|
| 138 | None
|
---|
| 139 | </seg>
|
---|
| 140 | </seglistitem>
|
---|
| 141 | </segmentedlist>
|
---|
| 142 |
|
---|
| 143 | <variablelist>
|
---|
| 144 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 145 | <?dbfo list-presentation="list"?>
|
---|
| 146 | <?dbhtml list-presentation="table"?>
|
---|
| 147 |
|
---|
| 148 | <varlistentry id="scmp_sys_resolver">
|
---|
| 149 | <term><command>scmp_sys_resolver</command></term>
|
---|
| 150 | <listitem>
|
---|
| 151 | <para>
|
---|
[4c24eb0a] | 152 | is used to resolve system calls for applications
|
---|
[11f3b7e] | 153 | </para>
|
---|
| 154 | <indexterm zone="libseccomp scmp_sys_resolver">
|
---|
| 155 | <primary sortas="b-scmp_sys_resolver">scmp_sys_resolver</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 | </listitem>
|
---|
| 158 | </varlistentry>
|
---|
| 159 |
|
---|
| 160 | <varlistentry id="libseccomp-lib">
|
---|
| 161 | <term><filename class="libraryfile">libseccomp.so</filename></term>
|
---|
| 162 | <listitem>
|
---|
| 163 | <para>
|
---|
[4c24eb0a] | 164 | contains API functions for translating syscalls
|
---|
[11f3b7e] | 165 | </para>
|
---|
| 166 | <indexterm zone="libseccomp libseccomp-lib">
|
---|
| 167 | <primary sortas="c-libseccomp-lib">libseccomp.so</primary>
|
---|
| 168 | </indexterm>
|
---|
| 169 | </listitem>
|
---|
| 170 | </varlistentry>
|
---|
| 171 | </variablelist>
|
---|
| 172 | </sect2>
|
---|
[4c24eb0a] | 173 |
|
---|
[11f3b7e] | 174 | </sect1>
|
---|