diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-06-24 06:25:46 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-06-25 03:14:08 +0000 |
commit | 92d59b7bdb43a89dfc1601574a13b8c4c489a7bb (patch) | |
tree | b5dc92303c603441c86fa4a2cf8c85142676acd6 /test/fs | |
parent | fix disabled private-lib in /etc/firejail/firejail.config (diff) | |
download | firejail-92d59b7bdb43a89dfc1601574a13b8c4c489a7bb.tar.gz firejail-92d59b7bdb43a89dfc1601574a13b8c4c489a7bb.tar.zst firejail-92d59b7bdb43a89dfc1601574a13b8c4c489a7bb.zip |
test/fs: enable private-lib in firejail.config
Before running test/fs/private-lib.exp.
Inspired by the configuration changes that are done on
test/root/checkcfg.exp.
Reason: Since commit 9741d0b60 ("fix disabled private-lib in
/etc/firejail/firejail.config", 2022-06-23), the "build_and_test" job
fails with the following error[1]:
TESTING: private-lib (test/fs/private-lib.exp)
spawn /bin/bash
firejail --private-lib --private-bin=sh,bash,dash,ps,grep,ls,find,echo,stty
runner@fv-az489-993:~/work/firejail/firejail/test/fs$
<private-bin=sh,bash,dash,ps,grep,ls,find,echo,stty
Error: private-lib feature is disabled in Firejail configuration file
runner@fv-az489-993:~/work/firejail/firejail/test/fs$ TESTING ERROR 1
This fixes CI.
Fixes #5214.
Relates to #5190.
[1] https://github.com/netblue30/firejail/runs/7030862406
Diffstat (limited to 'test/fs')
-rwxr-xr-x | test/fs/fs.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/fs/fs.sh b/test/fs/fs.sh index b49e447b7..36ff30934 100755 --- a/test/fs/fs.sh +++ b/test/fs/fs.sh | |||
@@ -46,8 +46,12 @@ echo "TESTING: read/write /var/tmp (test/fs/fs_var_tmp.exp)" | |||
46 | rm -f /var/tmp/_firejail_test_file | 46 | rm -f /var/tmp/_firejail_test_file |
47 | 47 | ||
48 | if [ "$(uname -m)" = "x86_64" ]; then | 48 | if [ "$(uname -m)" = "x86_64" ]; then |
49 | fjconfig=/etc/firejail/firejail.config | ||
50 | printf 'private-lib yes\n' | sudo tee -a "$fjconfig" >/dev/null | ||
49 | echo "TESTING: private-lib (test/fs/private-lib.exp)" | 51 | echo "TESTING: private-lib (test/fs/private-lib.exp)" |
50 | ./private-lib.exp | 52 | ./private-lib.exp |
53 | printf '%s\n' "$(sed '/^private-lib yes$/d' "$fjconfig")" | | ||
54 | sudo tee "$fjconfig" >/dev/null | ||
51 | else | 55 | else |
52 | echo "TESTING SKIP: private-lib test implemented only for x86_64." | 56 | echo "TESTING SKIP: private-lib test implemented only for x86_64." |
53 | fi | 57 | fi |