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