mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
build: deb: enable apparmor by default & remove deb-apparmor
The official .deb package is always built with apparmor support, so use
`--enable-apparmor` in mkdeb.sh and remove the "deb-apparmor" target in
order to reduce redundancy.
Note that custom configure options may be specified by calling
./mkdeb.sh directly.
For example, to build the .deb package without apparmor support, instead
of running `make deb`, the following commands can be used:
make dist
./mkdeb.sh --disable-apparmor
Also, change the `build_apparmor` GitLab CI job into
`build_no_apparmor`, which is intended to check that building without
apparmor still works.
Note: This commit makes the resulting .deb package not have an
"-apparmor" suffix (see `EXTRA_VERSION` in mkdeb.sh), to avoid
redundancy (as having apparmor support becomes the default).
Misc: This is a follow-up to #5654.
Relates to #5154 #5176 #5547.
This commit is contained in:
parent
89d45e6cf2
commit
f33e452b04
5 changed files with 9 additions and 13 deletions
|
|
@ -9,7 +9,7 @@ build_ubuntu_package:
|
|||
image: ubuntu:rolling
|
||||
script:
|
||||
- apt-get update -qq
|
||||
- DEBIAN_FRONTEND=noninteractive apt-get install -y -qq build-essential lintian pkg-config python3 gawk
|
||||
- DEBIAN_FRONTEND=noninteractive apt-get install -y -qq build-essential lintian libapparmor-dev pkg-config python3 gawk
|
||||
- ./configure && make deb && dpkg -i firejail*.deb
|
||||
- command -V firejail && firejail --version
|
||||
- python3 contrib/sort.py etc/profile-*/*.profile etc/inc/*.inc
|
||||
|
|
@ -18,7 +18,7 @@ build_debian_package:
|
|||
image: debian:stretch
|
||||
script:
|
||||
- apt-get update -qq
|
||||
- apt-get install -y -qq build-essential lintian pkg-config gawk
|
||||
- apt-get install -y -qq build-essential lintian libapparmor-dev pkg-config gawk
|
||||
- ./configure && make deb && dpkg -i firejail*.deb
|
||||
- command -V firejail && firejail --version
|
||||
|
||||
|
|
@ -49,14 +49,14 @@ build_src_package:
|
|||
- command -V firejail && firejail --version
|
||||
# - python3 contrib/sort.py etc/*.{profile,inc}
|
||||
|
||||
build_apparmor:
|
||||
build_no_apparmor:
|
||||
image: ubuntu:latest
|
||||
script:
|
||||
- apt-get update -qq
|
||||
- DEBIAN_FRONTEND=noninteractive apt-get install -y -qq build-essential lintian libapparmor-dev pkg-config gawk
|
||||
- ./configure && make deb-apparmor && dpkg -i firejail*.deb
|
||||
- DEBIAN_FRONTEND=noninteractive apt-get install -y -qq build-essential lintian pkg-config gawk
|
||||
- ./configure && make dist && ./mkdeb.sh --disable-apparmor && dpkg -i firejail*.deb
|
||||
- command -V firejail && firejail --version
|
||||
- firejail --version | grep -F 'AppArmor support is enabled'
|
||||
- firejail --version | grep -F 'AppArmor support is disabled'
|
||||
|
||||
debian_ci:
|
||||
image: registry.salsa.debian.org/salsa-ci-team/ci-image-git-buildpackage:latest
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -339,10 +339,6 @@ asc: config.mk
|
|||
deb: dist config.sh
|
||||
./mkdeb.sh
|
||||
|
||||
.PHONY: deb-apparmor
|
||||
deb-apparmor: dist config.sh
|
||||
env EXTRA_VERSION=-apparmor ./mkdeb.sh --enable-apparmor
|
||||
|
||||
.PHONY: test-compile
|
||||
test-compile: dist config.mk
|
||||
cd test/compile; ./compile.sh $(TARNAME)-$(VERSION)
|
||||
|
|
|
|||
2
README
2
README
|
|
@ -34,7 +34,7 @@ $ sudo apt-get install git build-essential libapparmor-dev pkg-config gawk
|
|||
For --selinux option, add libselinux1-dev (libselinux-devel for Fedora).
|
||||
|
||||
We build our release firejail.tar.xz and firejail.deb packages using the following command:
|
||||
$ make distclean && ./configure && make deb-apparmor
|
||||
$ make distclean && ./configure && make deb
|
||||
|
||||
|
||||
Maintainer:
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ cd firejail
|
|||
sed -i "s/# restricted-network .*/restricted-network yes/" \
|
||||
etc/firejail.config
|
||||
|
||||
make deb-apparmor
|
||||
make deb
|
||||
sudo dpkg -i firejail*.deb
|
||||
echo "Firejail updated."
|
||||
cd ..
|
||||
|
|
|
|||
2
mkdeb.sh
2
mkdeb.sh
|
|
@ -25,7 +25,7 @@ echo "*****************************************"
|
|||
tar -xJvf "$CODE_ARCHIVE"
|
||||
#mkdir -p "$INSTALL_DIR"
|
||||
cd "$CODE_DIR"
|
||||
./configure --prefix=/usr "$@"
|
||||
./configure --prefix=/usr --enable-apparmor "$@"
|
||||
make -j2
|
||||
mkdir debian
|
||||
DESTDIR=debian make install-strip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue