mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
181 lines
5.3 KiB
XML
181 lines
5.3 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY libseccomp-download-http "https://github.com/seccomp/libseccomp/releases/download/v&libseccomp-version;/libseccomp-&libseccomp-version;.tar.gz">
|
|
<!ENTITY libseccomp-download-ftp " ">
|
|
<!ENTITY libseccomp-md5sum "74008bb33234e0c2a0d998e7bee5c625">
|
|
<!ENTITY libseccomp-size "624 KB">
|
|
<!ENTITY libseccomp-buildsize "6.3 MB (additional 3.8 MB for tests)">
|
|
<!ENTITY libseccomp-time "less than 0.1 SBU (additional 2.1 SBU for tests)">
|
|
<!-- EDITORS NOTE:
|
|
This library is heavily dependent on system calls at the time of it's release.
|
|
This should be tested with every new minor (v4.13, v4.14, etc.) release
|
|
of the kernel, as it is very finicky and relies on hacks to accomplish
|
|
it's purpose. -->
|
|
]>
|
|
|
|
<sect1 id="libseccomp" xreflabel="libseccomp-&libseccomp-version;">
|
|
<?dbhtml filename="libseccomp.html"?>
|
|
|
|
<sect1info>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>libseccomp-&libseccomp-version;</title>
|
|
|
|
<indexterm zone="libseccomp">
|
|
<primary sortas="a-libseccomp">libseccomp</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to libseccomp</title>
|
|
|
|
<para>
|
|
The <application>libseccomp</application> package provides an easy to use
|
|
and platform independent interface to the <application>Linux</application>
|
|
kernel's syscall filtering mechanism.
|
|
</para>
|
|
|
|
&lfs111_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&libseccomp-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&libseccomp-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &libseccomp-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &libseccomp-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &libseccomp-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &libseccomp-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">libseccomp Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="which"/> (needed for tests),
|
|
<xref linkend="valgrind"/>,
|
|
<ulink url="http://cython.org/">Cython</ulink> (for python bindings), and
|
|
<ulink url="http://ltp.sourceforge.net/coverage/lcov.php">LCOV</ulink>
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">
|
|
User Notes: <ulink url="&blfs-wiki;/libseccomp"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of libseccomp</title>
|
|
|
|
<para>
|
|
Install <application>libseccomp</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr --disable-static &&
|
|
make</userinput></screen>
|
|
|
|
<para>
|
|
To test the results, issue: <command>make check</command>.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
<para>
|
|
<option>--enable-python</option>: this switch is needed to build
|
|
python bindings if <ulink url="http://cython.org/">Cython</ulink>
|
|
is installed.
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Program</segtitle>
|
|
<segtitle>Installed Library</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
scmp_sys_resolver
|
|
</seg>
|
|
<seg>
|
|
libseccomp.so
|
|
</seg>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="scmp_sys_resolver">
|
|
<term><command>scmp_sys_resolver</command></term>
|
|
<listitem>
|
|
<para>
|
|
is used to resolve system calls for applications
|
|
</para>
|
|
<indexterm zone="libseccomp scmp_sys_resolver">
|
|
<primary sortas="b-scmp_sys_resolver">scmp_sys_resolver</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libseccomp-lib">
|
|
<term><filename class="libraryfile">libseccomp.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains API functions for translating syscalls
|
|
</para>
|
|
<indexterm zone="libseccomp libseccomp-lib">
|
|
<primary sortas="c-libseccomp-lib">libseccomp.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</sect2>
|
|
|
|
</sect1>
|