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