aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml2
-rw-r--r--Makefile7
-rwxr-xr-xtest/firecfg/firecfg.sh23
3 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cb0d31828..9a4268787 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -71,6 +71,8 @@ jobs:
71 run: command -V firejail && firejail --version 71 run: command -V firejail && firejail --version
72 - name: lab setup 72 - name: lab setup
73 run: SHELL=/bin/bash make lab-setup 73 run: SHELL=/bin/bash make lab-setup
74 - name: run firecfg tests
75 run: SHELL=/bin/bash make test-firecfg
74 - name: run network tests 76 - name: run network tests
75 run: SHELL=/bin/bash make test-network 77 run: SHELL=/bin/bash make test-network
76 - name: run appimage tests 78 - name: run appimage tests
diff --git a/Makefile b/Makefile
index fc543f8c4..8e03744fd 100644
--- a/Makefile
+++ b/Makefile
@@ -392,6 +392,13 @@ test-chroot:
392test-network: 392test-network:
393 $(MAKE) -C test $(subst test-,,$@) 393 $(MAKE) -C test $(subst test-,,$@)
394 394
395# using sudo; not included in "make dist" and "make test"
396test-apparmor:
397 $(MAKE) -C test $(subst test-,,$@)
398
399# using sudo; not included in "make dist" and "make test"
400test-firecfg:
401 $(MAKE) -C test $(subst test-,,$@)
395 402
396 403
397# old gihub test; the new test is driven directly from .github/workflows/build.yml 404# old gihub test; the new test is driven directly from .github/workflows/build.yml
diff --git a/test/firecfg/firecfg.sh b/test/firecfg/firecfg.sh
new file mode 100755
index 000000000..5a87f3764
--- /dev/null
+++ b/test/firecfg/firecfg.sh
@@ -0,0 +1,23 @@
1#!/bin/bash
2# This file is part of Firejail project
3# Copyright (C) 2014-2023 Firejail Authors
4# License GPL v2
5
6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8export LC_ALL=C
9
10sudo cat /sys/kernel/security/apparmor/profiles
11sudo firecfg
12file /usr/local/bin/ping
13ls -l /usr/local/bin
14sudo cat /sys/kernel/security/apparmor/profiles
15
16#if [[ -f /sys/kernel/security/apparmor/profiles ]]; then
17#
18#else
19# echo "TESTING SKIP: no apparmor support in Linux kernel (test/filters/apparmor.exp)"
20#fi
21#
22#echo "TESTING: firecfg (test/firecfg/firecfg.exp)"
23#./firecfg.exp.exp