1
1
sio2jail
2
2
========
3
3
4
+ Building in Docker
5
+ --------
6
+
7
+ Available commands:
8
+
9
+ * ` make release-docker ` - build sio2jail binary and
10
+ .deb package.
11
+
12
+ * ` make install-docker ` - build sio2jail binary.
13
+
14
+ * ` make deb-docker ` - build sio2jail .deb package.
4
15
5
- building
16
+ * ` make clean-docker ` - clean up all temporary files.
17
+
18
+ The output files are placed in ` ./out/ ` directory.
19
+
20
+ For further reference and configuration see ` ./Makefile ` .
21
+
22
+ Building manually
6
23
--------
7
24
8
25
You need a CMake, a C/C++ compiler with multilib support and python2. Any
@@ -15,6 +32,9 @@ install files to ~/local directory run:
15
32
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/local ..
16
33
make && make install
17
34
35
+ For building with default configuration, see scripts in
36
+ ` ./Makefile ` .
37
+
18
38
Our sio2jail uses some external libraries and programs:
19
39
* libcap
20
40
* libseccomp (>= 2.3.0)
@@ -55,7 +75,7 @@ option (STATIC by default):
55
75
There is also a possibility to control whether output binary should run on other
56
76
architecture than the default one (or force given architecture):
57
77
58
- -DARCH=i386|x86_64
78
+ -DARCH=i386|amd64
59
79
60
80
Note, that when using ARCH other than build host architecture it may be necessary
61
81
(depending on libraries installation) to build sio2jail with custom libseccomp (more
@@ -66,7 +86,7 @@ ignore system libseccomp run:
66
86
67
87
cmake -DWITH_DOCS=NO -DLIBTCLAP_PREFIX=/opt/tclap -DLIBSECCOMP_BUILD_OWN=YES ..
68
88
69
- running
89
+ Running
70
90
-------
71
91
72
92
You may need to run
@@ -80,14 +100,14 @@ Additionally, if you want to use sandboxing on older Debian kernels, you'll need
80
100
For both settings, you may also put these options in your /etc/sysctl.conf.
81
101
This will make the settings persist across reboots.
82
102
83
- running tests
103
+ Running tests
84
104
-------------
85
105
86
106
To run test suit use 'check' target, e.g in build directory run:
87
107
88
108
make check
89
109
90
- notes for developers
110
+ Notes for developers
91
111
--------------------
92
112
93
113
To manually run clang-format on each file run:
0 commit comments