mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
Merge pull request #6230 from kmk3/build-reduce-inconsistencies
build: reduce hardcoding and inconsistencies
This commit is contained in:
commit
8c4cc9a839
12 changed files with 229 additions and 140 deletions
9
.github/workflows/build-extra.yml
vendored
9
.github/workflows/build-extra.yml
vendored
|
|
@ -48,12 +48,10 @@ jobs:
|
|||
with:
|
||||
egress-policy: block
|
||||
allowed-endpoints: >
|
||||
archive.ubuntu.com:80
|
||||
azure.archive.ubuntu.com:80
|
||||
github.com:443
|
||||
packages.microsoft.com:443
|
||||
ppa.launchpadcontent.net:443
|
||||
security.ubuntu.com:80
|
||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
||||
- name: update package information
|
||||
run: sudo apt-get update -qy
|
||||
|
|
@ -65,12 +63,13 @@ jobs:
|
|||
run: ./ci/printenv.sh
|
||||
- name: configure
|
||||
run: >
|
||||
CC=clang-14 ./configure --enable-fatal-warnings --enable-apparmor
|
||||
--enable-selinux
|
||||
./configure CC=clang-14
|
||||
--prefix=/usr --enable-fatal-warnings
|
||||
--enable-apparmor --enable-selinux
|
||||
|| (cat config.log; exit 1)
|
||||
- name: make
|
||||
run: make
|
||||
- name: make install
|
||||
run: sudo make install
|
||||
- name: print version
|
||||
run: command -V firejail && firejail --version
|
||||
run: make print-version
|
||||
|
|
|
|||
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
|
@ -74,18 +74,18 @@ jobs:
|
|||
- name: install dependencies
|
||||
run: >
|
||||
sudo apt-get install -qy
|
||||
gcc-12 libapparmor-dev libselinux1-dev expect xzdec whois
|
||||
bridge-utils
|
||||
gcc-12 libapparmor-dev libselinux1-dev
|
||||
- name: print env
|
||||
run: ./ci/printenv.sh
|
||||
- name: configure
|
||||
run: >
|
||||
CC=gcc-12 ./configure --prefix=/usr --enable-fatal-warnings
|
||||
--enable-analyzer --enable-apparmor --enable-selinux
|
||||
./configure CC=gcc-12
|
||||
--prefix=/usr --enable-fatal-warnings --enable-analyzer
|
||||
--enable-apparmor --enable-selinux
|
||||
|| (cat config.log; exit 1)
|
||||
- name: make
|
||||
run: make
|
||||
- name: make install
|
||||
run: sudo make install
|
||||
- name: print firejail version
|
||||
run: command -V firejail && firejail --version
|
||||
- name: print version
|
||||
run: make print-version
|
||||
|
|
|
|||
11
.github/workflows/check-c.yml
vendored
11
.github/workflows/check-c.yml
vendored
|
|
@ -8,9 +8,9 @@ on:
|
|||
branches-ignore:
|
||||
- 'dependabot/**'
|
||||
paths:
|
||||
- '**.c'
|
||||
- '**.h'
|
||||
- 'm4/**'
|
||||
- 'src/**.c'
|
||||
- 'src/**.h'
|
||||
- 'src/**.mk'
|
||||
- 'src/**Makefile'
|
||||
- .github/workflows/check-c.yml
|
||||
|
|
@ -22,9 +22,9 @@ on:
|
|||
- configure.ac
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.c'
|
||||
- '**.h'
|
||||
- 'm4/**'
|
||||
- 'src/**.c'
|
||||
- 'src/**.h'
|
||||
- 'src/**.mk'
|
||||
- 'src/**Makefile'
|
||||
- .github/workflows/check-c.yml
|
||||
|
|
@ -68,7 +68,8 @@ jobs:
|
|||
- name: configure
|
||||
run: >
|
||||
./configure CC=clang-14 SCAN_BUILD=scan-build-14
|
||||
--enable-fatal-warnings --enable-apparmor --enable-selinux
|
||||
--prefix=/usr --enable-fatal-warnings
|
||||
--enable-apparmor --enable-selinux
|
||||
|| (cat config.log; exit 1)
|
||||
- name: scan-build
|
||||
run: make scan-build
|
||||
|
|
|
|||
45
.github/workflows/test.yml
vendored
45
.github/workflows/test.yml
vendored
|
|
@ -73,15 +73,16 @@ jobs:
|
|||
run: ./ci/printenv.sh
|
||||
- name: configure
|
||||
run: >
|
||||
CC=gcc-12 ./configure --prefix=/usr --enable-fatal-warnings
|
||||
--enable-analyzer --enable-apparmor --enable-selinux
|
||||
./configure CC=gcc-12
|
||||
--prefix=/usr --enable-fatal-warnings --enable-analyzer
|
||||
--enable-apparmor --enable-selinux
|
||||
|| (cat config.log; exit 1)
|
||||
- name: make
|
||||
run: make -j "$(nproc)"
|
||||
- name: make install
|
||||
run: sudo make install
|
||||
- name: print firejail version
|
||||
run: command -V firejail && firejail --version
|
||||
- name: print version
|
||||
run: make print-version
|
||||
- run: make lab-setup
|
||||
- run: make test-seccomp-extra
|
||||
- run: make test-firecfg
|
||||
|
|
@ -121,15 +122,16 @@ jobs:
|
|||
run: ./ci/printenv.sh
|
||||
- name: configure
|
||||
run: >
|
||||
CC=gcc-12 ./configure --prefix=/usr --enable-fatal-warnings
|
||||
--enable-analyzer --enable-apparmor --enable-selinux
|
||||
./configure CC=gcc-12
|
||||
--prefix=/usr --enable-fatal-warnings --enable-analyzer
|
||||
--enable-apparmor --enable-selinux
|
||||
|| (cat config.log; exit 1)
|
||||
- name: make
|
||||
run: make -j "$(nproc)"
|
||||
- name: make install
|
||||
run: sudo make install
|
||||
- name: print firejail version
|
||||
run: command -V firejail && firejail --version
|
||||
- name: print version
|
||||
run: make print-version
|
||||
- run: make lab-setup
|
||||
- run: make test-private-etc
|
||||
- run: make test-fs
|
||||
|
|
@ -160,15 +162,16 @@ jobs:
|
|||
run: ./ci/printenv.sh
|
||||
- name: configure
|
||||
run: >
|
||||
CC=gcc-12 ./configure --prefix=/usr --enable-fatal-warnings
|
||||
--enable-analyzer --enable-apparmor --enable-selinux
|
||||
./configure CC=gcc-12
|
||||
--prefix=/usr --enable-fatal-warnings --enable-analyzer
|
||||
--enable-apparmor --enable-selinux
|
||||
|| (cat config.log; exit 1)
|
||||
- name: make
|
||||
run: make -j "$(nproc)"
|
||||
- name: make install
|
||||
run: sudo make install
|
||||
- name: print firejail version
|
||||
run: command -V firejail && firejail --version
|
||||
- name: print version
|
||||
run: make print-version
|
||||
- run: make lab-setup
|
||||
- run: make test-environment
|
||||
- run: make test-profiles
|
||||
|
|
@ -202,15 +205,16 @@ jobs:
|
|||
run: ./ci/printenv.sh
|
||||
- name: configure
|
||||
run: >
|
||||
CC=gcc-12 ./configure --prefix=/usr --enable-fatal-warnings
|
||||
--enable-analyzer --enable-apparmor --enable-selinux
|
||||
./configure CC=gcc-12
|
||||
--prefix=/usr --enable-fatal-warnings --enable-analyzer
|
||||
--enable-apparmor --enable-selinux
|
||||
|| (cat config.log; exit 1)
|
||||
- name: make
|
||||
run: make -j "$(nproc)"
|
||||
- name: make install
|
||||
run: sudo make install
|
||||
- name: print firejail version
|
||||
run: command -V firejail && firejail --version
|
||||
- name: print version
|
||||
run: make print-version
|
||||
- run: make lab-setup
|
||||
- run: make test-utils
|
||||
|
||||
|
|
@ -248,15 +252,16 @@ jobs:
|
|||
run: ./ci/printenv.sh
|
||||
- name: configure
|
||||
run: >
|
||||
CC=gcc-12 ./configure --prefix=/usr --enable-fatal-warnings
|
||||
--enable-analyzer --enable-apparmor --enable-selinux
|
||||
./configure CC=gcc-12
|
||||
--prefix=/usr --enable-fatal-warnings --enable-analyzer
|
||||
--enable-apparmor --enable-selinux
|
||||
|| (cat config.log; exit 1)
|
||||
- name: make
|
||||
run: make -j "$(nproc)"
|
||||
- name: make install
|
||||
run: sudo make install
|
||||
- name: print firejail version
|
||||
run: command -V firejail && firejail --version
|
||||
- name: print version
|
||||
run: make print-version
|
||||
- run: make lab-setup
|
||||
- run: make test-fnetfilter
|
||||
- run: make test-sysutils
|
||||
|
|
|
|||
132
.gitlab-ci.yml
132
.gitlab-ci.yml
|
|
@ -1,10 +1,13 @@
|
|||
# Basic notes: builds firejail on 5 different systems for 2 package systems:
|
||||
# 1. Debian-based systems. Use debian:jessie to ensure reasonable backwards
|
||||
# compat and ubuntu:rolling for new setups
|
||||
# 2. Redhat-based systems. Use centos:latest for reasonable backwards compat
|
||||
# and fedora:latest for new setups
|
||||
# 3. Alpine for installing directly from source
|
||||
# Also builds apparmor package for Ubuntu LTS
|
||||
# Builds on multiple systems using different package managers:
|
||||
#
|
||||
# - Debian-based systems: Use oldest working/supported debian image for
|
||||
# reasonable backwards compatibility and ubuntu:rolling for new setups.
|
||||
# Additionally, ensure that the package works without apparmor.
|
||||
#
|
||||
# - Redhat-based systems: Use a centos-like distribution for reasonable
|
||||
# backwards compatibility and fedora:latest for new setups.
|
||||
#
|
||||
# - Alpine: Use it for installing directly from source.
|
||||
|
||||
build_ubuntu_package:
|
||||
image: ubuntu:rolling
|
||||
|
|
@ -19,9 +22,10 @@ build_ubuntu_package:
|
|||
| grep -Ev '^(Selecting|Preparing to unpack|Unpacking)'
|
||||
- ./ci/printenv.sh
|
||||
- ./configure || (cat config.log; exit 1)
|
||||
- make deb
|
||||
- dpkg -i firejail*.deb
|
||||
- command -V firejail && firejail --version
|
||||
- make dist
|
||||
- ./mkdeb.sh --enable-fatal-warnings
|
||||
- dpkg -i ./*.deb
|
||||
- make print-version
|
||||
|
||||
build_debian_package:
|
||||
image: debian:buster
|
||||
|
|
@ -36,46 +40,10 @@ build_debian_package:
|
|||
| grep -Ev '^(Selecting|Preparing to unpack|Unpacking)'
|
||||
- ./ci/printenv.sh
|
||||
- ./configure || (cat config.log; exit 1)
|
||||
- make deb
|
||||
- dpkg -i firejail*.deb
|
||||
- command -V firejail && firejail --version
|
||||
|
||||
build_redhat_package:
|
||||
image: almalinux:latest
|
||||
timeout: 10 minutes
|
||||
script:
|
||||
- dnf update -y
|
||||
- dnf install -y rpm-build gcc make
|
||||
- ./ci/printenv.sh
|
||||
- ./configure || (cat config.log; exit 1)
|
||||
- make rpms
|
||||
- rpm -i firejail*.rpm
|
||||
- command -V firejail && firejail --version
|
||||
|
||||
build_fedora_package:
|
||||
image: fedora:latest
|
||||
timeout: 10 minutes
|
||||
script:
|
||||
- dnf update -y
|
||||
- dnf install -y rpm-build gcc make
|
||||
- ./ci/printenv.sh
|
||||
- ./configure || (cat config.log; exit 1)
|
||||
- make rpms
|
||||
- rpm -i firejail*.rpm
|
||||
- command -V firejail && firejail --version
|
||||
|
||||
build_src_package:
|
||||
image: alpine:latest
|
||||
timeout: 10 minutes
|
||||
script:
|
||||
- apk update
|
||||
- apk upgrade
|
||||
- apk add build-base linux-headers gawk
|
||||
- ./ci/printenv.sh
|
||||
- ./configure --prefix=/usr || (cat config.log; exit 1)
|
||||
- make
|
||||
- make install-strip
|
||||
- command -V firejail && firejail --version
|
||||
- make dist
|
||||
- ./mkdeb.sh --enable-fatal-warnings
|
||||
- dpkg -i ./*.deb
|
||||
- make print-version
|
||||
|
||||
build_no_apparmor:
|
||||
image: ubuntu:latest
|
||||
|
|
@ -91,10 +59,55 @@ build_no_apparmor:
|
|||
- ./ci/printenv.sh
|
||||
- ./configure || (cat config.log; exit 1)
|
||||
- make dist
|
||||
- ./mkdeb.sh --disable-apparmor
|
||||
- dpkg -i firejail*.deb
|
||||
- command -V firejail && firejail --version
|
||||
- firejail --version | grep -F 'AppArmor support is disabled'
|
||||
- >
|
||||
./mkdeb.sh --enable-fatal-warnings
|
||||
--disable-apparmor
|
||||
- dpkg -i ./*.deb
|
||||
- make print-version
|
||||
- make print-version | grep -F 'AppArmor support is disabled'
|
||||
|
||||
build_redhat_package:
|
||||
image: almalinux:latest
|
||||
timeout: 10 minutes
|
||||
script:
|
||||
- dnf update -y
|
||||
- dnf install -y rpm-build gcc make
|
||||
- ./ci/printenv.sh
|
||||
- ./configure || (cat config.log; exit 1)
|
||||
- make dist
|
||||
- ./platform/rpm/mkrpm.sh --enable-fatal-warnings
|
||||
- rpm -i ./*.rpm
|
||||
- make print-version
|
||||
|
||||
build_fedora_package:
|
||||
image: fedora:latest
|
||||
timeout: 10 minutes
|
||||
script:
|
||||
- dnf update -y
|
||||
- dnf install -y rpm-build gcc make
|
||||
- ./ci/printenv.sh
|
||||
- ./configure || (cat config.log; exit 1)
|
||||
- make dist
|
||||
- ./platform/rpm/mkrpm.sh --enable-fatal-warnings
|
||||
- rpm -i ./*.rpm
|
||||
- make print-version
|
||||
|
||||
build_src_package:
|
||||
image: alpine:latest
|
||||
timeout: 10 minutes
|
||||
script:
|
||||
- apk update
|
||||
- apk upgrade
|
||||
- apk add build-base linux-headers gawk
|
||||
- ./ci/printenv.sh
|
||||
# Note: Do not use ` --enable-fatal-warnings` because the build
|
||||
# currently produces warnings on Alpine (see #6224).
|
||||
- >
|
||||
./configure --prefix=/usr
|
||||
|| (cat config.log; exit 1)
|
||||
- make
|
||||
- make install-strip
|
||||
- make print-version
|
||||
|
||||
debian_ci:
|
||||
image: registry.salsa.debian.org/salsa-ci-team/ci-image-git-buildpackage:latest
|
||||
|
|
@ -103,6 +116,7 @@ debian_ci:
|
|||
DEBFULLNAME: "$GITLAB_USER_NAME"
|
||||
DEBEMAIL: "$GITLAB_USER_EMAIL"
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
PKGNAME: firejail
|
||||
before_script:
|
||||
- git checkout -B ci_build "$CI_COMMIT_SHA"
|
||||
- gitlab-ci-enable-sid
|
||||
|
|
@ -117,17 +131,17 @@ debian_ci:
|
|||
- git config user.email "$DEBEMAIL"
|
||||
- |
|
||||
cd "$CI_PROJECT_DIR/.."
|
||||
apt-get source --download-only -t experimental firejail ||
|
||||
apt-get source --download-only firejail
|
||||
apt-get source --download-only -t experimental "$PKGNAME" ||
|
||||
apt-get source --download-only "$PKGNAME"
|
||||
- |
|
||||
cd "$CI_PROJECT_DIR"
|
||||
tar xf ../firejail_*.debian.tar.*
|
||||
tar xf "../${PKGNAME}"_*.debian.tar.*
|
||||
- rm -rf debian/patches/
|
||||
- |
|
||||
VERSION="$(grep ^PACKAGE_VERSION= configure | cut -d "'" -f 2)"
|
||||
dch -v "${VERSION}-0.1~ci" 'Non-maintainer upload.'
|
||||
git archive -o "../firejail_${VERSION}.orig.tar.gz" HEAD
|
||||
pristine-tar commit "../firejail_${VERSION}.orig.tar.gz" ci_build
|
||||
git archive -o "../${PKGNAME}_${VERSION}.orig.tar.gz" HEAD
|
||||
pristine-tar commit "../${PKGNAME}_${VERSION}.orig.tar.gz" ci_build
|
||||
git branch -m pristine-tar origin/pristine-tar
|
||||
- git add debian
|
||||
- git commit -m 'add debian/'
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -391,6 +391,10 @@ codespell:
|
|||
print-env:
|
||||
./ci/printenv.sh
|
||||
|
||||
.PHONY: print-version
|
||||
print-version: config.mk
|
||||
command -V $(TARNAME) && $(TARNAME) --version
|
||||
|
||||
#
|
||||
# make test
|
||||
#
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ sed -i "s/# restricted-network .*/restricted-network yes/" \
|
|||
etc/firejail.config
|
||||
|
||||
make deb
|
||||
sudo dpkg -i firejail*.deb
|
||||
sudo dpkg -i ./*.deb
|
||||
echo "Firejail updated."
|
||||
cd ..
|
||||
rm -rf firejail
|
||||
|
|
|
|||
16
gcov.sh
16
gcov.sh
|
|
@ -12,14 +12,22 @@
|
|||
gcov_generate() {
|
||||
USER="$(whoami)"
|
||||
find . -exec sudo chown "$USER:$USER" '{}' +
|
||||
lcov -q --capture -d src/firejail -d src/lib -d src/firecfg -d src/firemon \
|
||||
-d src/fnet -d src/fnetfilter -d src/fcopy -d src/fseccomp --output-file gcov-file
|
||||
lcov -q --capture \
|
||||
-d src/firejail -d src/lib -d src/firecfg -d src/firemon \
|
||||
-d src/fnet -d src/fnetfilter -d src/fcopy \
|
||||
-d src/fseccomp --output-file gcov-file
|
||||
|
||||
genhtml -q gcov-file --output-directory gcov-dir
|
||||
}
|
||||
|
||||
make distclean && ./configure --prefix=/usr --enable-apparmor --enable-gcov --enable-fatal-warnings && make -j4 && sudo make install
|
||||
make distclean &&
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--enable-apparmor --enable-gcov &&
|
||||
make -j "$(nproc)" &&
|
||||
sudo make install
|
||||
|
||||
rm -fr gcov-dir gcov-file
|
||||
firejail --version
|
||||
make print-version
|
||||
gcov_generate
|
||||
|
||||
make test-firecfg | grep TESTING
|
||||
|
|
|
|||
2
mkdeb.sh
2
mkdeb.sh
|
|
@ -26,7 +26,7 @@ tar -xJvf "$CODE_ARCHIVE"
|
|||
#mkdir -p "$INSTALL_DIR"
|
||||
cd "$CODE_DIR"
|
||||
./configure --prefix=/usr --enable-apparmor "$@"
|
||||
make -j2
|
||||
make -j "$(nproc)"
|
||||
mkdir debian
|
||||
DESTDIR=debian make install-strip
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ set -e
|
|||
name="$TARNAME"
|
||||
# Strip any trailing prefix from the version like -rc1 etc
|
||||
version="$(printf '%s\n' "$VERSION" | sed 's/\-.*//g')"
|
||||
|
||||
# Note: rpmbuild itself already passes --prefix=/usr to ./configure
|
||||
config_opt="--disable-userns --disable-contrib-install $*"
|
||||
|
||||
if [[ ! -f "platform/rpm/${name}.spec" ]]; then
|
||||
|
|
|
|||
|
|
@ -44,5 +44,5 @@ mv $DIRFIRETOOLS $DIRFIREJAIL/extras/firetools
|
|||
|
||||
# build
|
||||
cd $DIRFIREJAIL
|
||||
cov-build --dir cov-int make -j 4 extras
|
||||
cov-build --dir cov-int make -j "$(nproc)" extras
|
||||
tar czvf myproject.tgz cov-int
|
||||
|
|
|
|||
|
|
@ -81,8 +81,10 @@ tar -xJvf ../../"$DIST.tar.xz"
|
|||
mv "$DIST" firejail
|
||||
|
||||
cd firejail || exit 1
|
||||
./configure --prefix=/usr --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test1
|
||||
grep Error output-configure output-make >> ./report-test1
|
||||
|
|
@ -98,8 +100,11 @@ rm output-configure output-make
|
|||
print_title "${arr[2]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-dbusproxy --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-dbusproxy \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test2
|
||||
grep Error output-configure output-make >> ./report-test2
|
||||
|
|
@ -115,8 +120,11 @@ rm output-configure output-make
|
|||
print_title "${arr[3]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-chroot --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-chroot \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test3
|
||||
grep Error output-configure output-make >> ./report-test3
|
||||
|
|
@ -132,8 +140,11 @@ rm output-configure output-make
|
|||
print_title "${arr[4]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-firetunnel --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-firetunnel \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test4
|
||||
grep Error output-configure output-make >> ./report-test4
|
||||
|
|
@ -149,8 +160,11 @@ rm output-configure output-make
|
|||
print_title "${arr[5]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-userns --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-userns \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test5
|
||||
grep Error output-configure output-make >> ./report-test5
|
||||
|
|
@ -167,8 +181,11 @@ rm output-configure output-make
|
|||
print_title "${arr[6]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-network --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-network \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test6
|
||||
grep Error output-configure output-make >> ./report-test6
|
||||
|
|
@ -184,8 +201,11 @@ rm output-configure output-make
|
|||
print_title "${arr[7]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-x11 --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-x11 \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test7
|
||||
grep Error output-configure output-make >> ./report-test7
|
||||
|
|
@ -201,8 +221,11 @@ rm output-configure output-make
|
|||
print_title "${arr[8]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --enable-selinux --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--enable-selinux \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test8
|
||||
grep Error output-configure output-make >> ./report-test8
|
||||
|
|
@ -218,8 +241,11 @@ rm output-configure output-make
|
|||
print_title "${arr[9]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-file-transfer --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-file-transfer \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test9
|
||||
grep Error output-configure output-make >> ./report-test9
|
||||
|
|
@ -235,8 +261,11 @@ rm output-configure output-make
|
|||
print_title "${arr[10]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-whitelist --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-whitelist \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test10
|
||||
grep Error output-configure output-make >> ./report-test10
|
||||
|
|
@ -252,8 +281,11 @@ rm output-configure output-make
|
|||
print_title "${arr[11]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-globalcfg --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-globalcfg \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test11
|
||||
grep Error output-configure output-make >> ./report-test11
|
||||
|
|
@ -269,8 +301,11 @@ rm output-configure output-make
|
|||
print_title "${arr[12]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --enable-apparmor --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--enable-apparmor \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test12
|
||||
grep Error output-configure output-make >> ./report-test12
|
||||
|
|
@ -286,8 +321,11 @@ rm output-configure output-make
|
|||
print_title "${arr[13]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --enable-busybox-workaround --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--enable-busybox-workaround \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test13
|
||||
grep Error output-configure output-make >> ./report-test13
|
||||
|
|
@ -303,8 +341,11 @@ rm output-configure output-make
|
|||
print_title "${arr[14]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-overlayfs --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-overlayfs \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test14
|
||||
grep Error output-configure output-make >> ./report-test14
|
||||
|
|
@ -320,8 +361,11 @@ rm output-configure output-make
|
|||
print_title "${arr[15]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-private-home \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test15
|
||||
grep Error output-configure output-make >> ./report-test15
|
||||
|
|
@ -337,8 +381,11 @@ rm output-configure output-make
|
|||
print_title "${arr[16]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-man --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-man \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test16
|
||||
grep Error output-configure output-make >> ./report-test16
|
||||
|
|
@ -354,8 +401,11 @@ rm output-configure output-make
|
|||
print_title "${arr[17]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-usertmpfs --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-usertmpfs \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test17
|
||||
grep Error output-configure output-make >> ./report-test17
|
||||
|
|
@ -371,8 +421,11 @@ rm output-configure output-make
|
|||
print_title "${arr[18]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--disable-private-home \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test18
|
||||
grep Error output-configure output-make >> ./report-test18
|
||||
|
|
@ -388,8 +441,11 @@ rm output-configure output-make
|
|||
print_title "${arr[19]}"
|
||||
cd firejail || exit 1
|
||||
make distclean
|
||||
./configure --prefix=/usr --enable-ids --enable-fatal-warnings 2>&1 | tee ../output-configure
|
||||
make -j4 2>&1 | tee ../output-make
|
||||
./configure --prefix=/usr --enable-fatal-warnings \
|
||||
--enable-ids \
|
||||
2>&1 | tee ../output-configure
|
||||
|
||||
make -j "$(nproc)" 2>&1 | tee ../output-make
|
||||
cd ..
|
||||
grep Warning output-configure output-make > ./report-test19
|
||||
grep Error output-configure output-make >> ./report-test19
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue