Skip to content

Commit

Permalink
deps/softwarecontainer-dependencies.sh: Enable apparmor and seccomp i…
Browse files Browse the repository at this point in the history
…n LXC

Add `--enable-apparmor` and `--enable-seccomp` flags at LXC
configuration stage

AppArmor is required to allow to apply additional MAC restrictions to
container described in AppArmor profile.

seccomp is required to apply additional restrictions on system calls
from container using seccomp syscall blacklist and whitelist.

Signed-off-by: Alexander Livenets <[email protected]>
  • Loading branch information
Alexander Livenets committed Apr 20, 2020
1 parent b3c965c commit 5c2b093
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deps/softwarecontainer-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ function install {
# For softwarecontainer
install libdbus-1-dev libglibmm-2.4-dev libglibmm-2.4 \
unzip bridge-utils lcov libjansson-dev libjansson4 \
dbus-x11 libcap-dev libtool python3-dev
dbus-x11 libcap-dev libtool python3-dev \
seccomp libseccomp-dev

apt-get remove --allow-downgrades --allow-remove-essential --allow-change-held-packages -fuy lxcfs lxc2 lxc-dev lxc-common \
liblxc-common liblxc-dev lxc1 liblxc1 lxc-templates lxc-tests lxc-utils python3-lxc
Expand All @@ -55,6 +56,6 @@ git clone git://github.com/lxc/lxc -b lxc-3.1.0
cd lxc

./autogen.sh
./configure --prefix=/usr --enable-capabilities --enable-python
./configure --prefix=/usr --enable-capabilities --enable-python --enable-apparmor --enable-seccomp

make && make install

0 comments on commit 5c2b093

Please sign in to comment.