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 bubblewrap-download-http "https://github.com/containers/bubblewrap/releases/download/v&bubblewrap-version;/bubblewrap-&bubblewrap-version;.tar.xz">
|
---|
8 | <!ENTITY bubblewrap-download-ftp " ">
|
---|
9 | <!ENTITY bubblewrap-md5sum "a481e7981e9c00e6b3eeaa05e9c2dc07">
|
---|
10 | <!ENTITY bubblewrap-size "142 KB">
|
---|
11 | <!ENTITY bubblewrap-buildsize "3.5 MB (with tests)">
|
---|
12 | <!ENTITY bubblewrap-time "less than 0.1 SBU (with tests)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="bubblewrap" xreflabel="bubblewrap-&bubblewrap-version;">
|
---|
16 | <?dbhtml filename="bubblewrap.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <date>$Date$</date>
|
---|
20 | </sect1info>
|
---|
21 |
|
---|
22 | <title>Bubblewrap-&bubblewrap-version;</title>
|
---|
23 |
|
---|
24 | <indexterm zone="bubblewrap">
|
---|
25 | <primary sortas="a-bubblewrap">bubblewrap</primary>
|
---|
26 | </indexterm>
|
---|
27 |
|
---|
28 | <sect2 role="package">
|
---|
29 | <title>Introduction to Bubblewrap</title>
|
---|
30 |
|
---|
31 | <para>
|
---|
32 | <application>Bubblewrap</application> is a setuid implementation of user
|
---|
33 | namespaces, or sandboxing, that provides access to a subset of kernel
|
---|
34 | user namespace features. Bubblewrap allows user owned processes to run in
|
---|
35 | an isolated environment with limited access to the underlying filesystem.
|
---|
36 | <!-- Thanks for the reword DJ -->
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | &lfs111_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&bubblewrap-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&bubblewrap-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &bubblewrap-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &bubblewrap-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &bubblewrap-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &bubblewrap-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect3">Bubblewrap Dependencies</bridgehead>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
78 | <para role="optional">
|
---|
79 | <xref linkend="libxslt"/> (to generate manual pages) and
|
---|
80 | <xref linkend="libseccomp"/> (built with python bindings, for tests)
|
---|
81 | </para>
|
---|
82 |
|
---|
83 | <para condition="html" role="usernotes">
|
---|
84 | User Notes: <ulink url="&blfs-wiki;/bubblewrap"/>
|
---|
85 | </para>
|
---|
86 | </sect2>
|
---|
87 |
|
---|
88 | <!-- NOTE: There is a possiblity of kernel configuration being required (see Xi's comment in #11090).
|
---|
89 | So far, I have not observed this, but that doesn't mean that it still might not be needed in practice. -->
|
---|
90 |
|
---|
91 | <sect2 role="installation">
|
---|
92 | <title>Installation of Bubblewrap</title>
|
---|
93 |
|
---|
94 | <para>
|
---|
95 | Install <application>Bubblewrap</application> by running the following
|
---|
96 | commands:
|
---|
97 | </para>
|
---|
98 |
|
---|
99 | <screen><userinput>mkdir build &&
|
---|
100 | cd build &&
|
---|
101 | meson --prefix=/usr --buildtype=release .. &&
|
---|
102 | ninja</userinput></screen>
|
---|
103 |
|
---|
104 | <para>
|
---|
105 | Next, if you desire to run the test suite, fix an issue caused by the
|
---|
106 | merged-/usr configuration in LFS:
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <screen remap="test"><userinput>sed 's@symlink usr/lib64@ro-bind-try /lib64@' -i ../tests/libtest.sh</userinput></screen>
|
---|
110 |
|
---|
111 | <para>
|
---|
112 | To test the results, issue: <command>ninja test</command>
|
---|
113 | </para>
|
---|
114 |
|
---|
115 | <para>
|
---|
116 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
117 | </para>
|
---|
118 |
|
---|
119 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
120 | </sect2>
|
---|
121 |
|
---|
122 | <sect2 role="commands">
|
---|
123 | <title>Command Explanations</title>
|
---|
124 |
|
---|
125 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
126 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
127 | </sect2>
|
---|
128 |
|
---|
129 | <sect2 role="content">
|
---|
130 | <title>Contents</title>
|
---|
131 |
|
---|
132 | <segmentedlist>
|
---|
133 | <segtitle>Installed Program</segtitle>
|
---|
134 | <segtitle>Installed Libraries</segtitle>
|
---|
135 | <segtitle>Installed Directories</segtitle>
|
---|
136 |
|
---|
137 | <seglistitem>
|
---|
138 | <seg>
|
---|
139 | bwrap
|
---|
140 | </seg>
|
---|
141 | <seg>
|
---|
142 | None
|
---|
143 | </seg>
|
---|
144 | <seg>
|
---|
145 | None
|
---|
146 | </seg>
|
---|
147 | </seglistitem>
|
---|
148 | </segmentedlist>
|
---|
149 |
|
---|
150 | <variablelist>
|
---|
151 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
152 | <?dbfo list-presentation="list"?>
|
---|
153 | <?dbhtml list-presentation="table"?>
|
---|
154 |
|
---|
155 | <varlistentry id="bwrap">
|
---|
156 | <term><command>bwrap</command></term>
|
---|
157 | <listitem>
|
---|
158 | <para>
|
---|
159 | generates a sandbox for a program to run in
|
---|
160 | </para>
|
---|
161 | <indexterm zone="bubblewrap bwrap">
|
---|
162 | <primary sortas="b-bwrap">bwrap</primary>
|
---|
163 | </indexterm>
|
---|
164 | </listitem>
|
---|
165 | </varlistentry>
|
---|
166 | </variablelist>
|
---|
167 | </sect2>
|
---|
168 |
|
---|
169 | </sect1>
|
---|