diff options
-rw-r--r-- | .github/workflows/build.yml | 2 | ||||
-rw-r--r-- | Makefile | 7 | ||||
-rwxr-xr-x | test/firecfg/firecfg.sh | 23 |
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 |
@@ -392,6 +392,13 @@ test-chroot: | |||
392 | test-network: | 392 | test-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" | ||
396 | test-apparmor: | ||
397 | $(MAKE) -C test $(subst test-,,$@) | ||
398 | |||
399 | # using sudo; not included in "make dist" and "make test" | ||
400 | test-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 | |||
6 | export MALLOC_CHECK_=3 | ||
7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) | ||
8 | export LC_ALL=C | ||
9 | |||
10 | sudo cat /sys/kernel/security/apparmor/profiles | ||
11 | sudo firecfg | ||
12 | file /usr/local/bin/ping | ||
13 | ls -l /usr/local/bin | ||
14 | sudo 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 | ||