Jonas Jelten
92f7be5192
testing: fix strace color probing in allow-debuggers & seccomp-ptrace
...
if strace runs in a terminal, it probes the background color to select
its color palette. this probing expects a reply, but due to expect
intercepting the io, the answer isn't sent back to strace, so it never
starts printing the expected output.
2026-03-11 13:43:14 +01:00
netblue30
2f6afc99d5
gcov testing
2026-01-16 11:17:29 -05:00
netblue30
188d5f16d4
--profile=FILE rework ( #6896 )
2026-01-05 12:42:17 -05:00
netblue30
2a5062c800
copyright 2014-2026 all over the place
2025-12-30 08:20:44 -05:00
Kelvin M. Klann
aca3376a77
tests: rlimit: add missing tests for rlimit-as / rlimit-cpu ( #6895 )
...
This is a follow-up to #6893 .
Relates to #1604 .
2025-09-12 10:34:02 +00:00
Kelvin M. Klann
45229e0f9b
modif: rlimit: improve error messages ( #6893 )
...
Changes:
* Remove unrelated `strerror` output from some error messages
* Remove periods from some error messages
* Ensure that the invalid value is in the error message
* Ensure that the full command name is in the error message (instead of
just `rlimit` in some cases)
* Standardize output
* tests: Expect the full command name (and argument in some cases)
Examples:
Before:
$ firejail --quiet --noprofile --rlimit-cpu=-1 /bin/true
Error: invalid rlimit -1
$ firejail --quiet --noprofile --rlimit-nproc=-1 /bin/true
Error: invalid rlimit -1
$ firejail --quiet --noprofile --rlimit-as=-1 /bin/true
Error: invalid rlimit-as. Only use positive numbers and K, M or G suffix.: No such file or directory
After:
$ firejail --quiet --noprofile --rlimit-cpu=-1 /bin/true
Error: invalid rlimit-cpu: -1
$ firejail --quiet --noprofile --rlimit-nproc=-1 /bin/true
Error: invalid rlimit-nproc: -1
$ firejail --quiet --noprofile --rlimit-as=-1 /bin/true
Error: invalid rlimit-as: -1; use only positive numbers and K, M or G suffix
This is a follow-up to #6891 .
Relates to #4315 .
2025-09-09 17:46:52 +00:00
Kelvin M. Klann
af766b4b7d
rlimit: sort commands in the code/tests
...
Note: They are already sorted in the following files:
* contrib/syntax/lists/profile_commands_arg1.list
* src/firejail/usage.c
* src/man/firejail-profile.5.in
* src/man/firejail.1.in
* src/zsh_completion/_firejail.in
* test/environment/rlimit-bad-profile.exp
* test/environment/rlimit-bad.exp
Related commits:
* 137985136 ("Baseline firejail 0.9.28", 2015-08-08)
* caefb7929 ("RLIMIT_AS", 2017-10-13) / PR #1604
* e8685de73 ("implemented --rlimit-cpu - set max CPU time for processes
running in the sandbox; for issue #1614 , more to come...", 2017-10-24)
2025-09-08 12:44:07 -03:00
Kelvin M. Klann
3e4bbc3f21
rlimit: rename test profiles for clarity
...
Add the specific rlimit command name to the filename.
Commands used to rename the files:
git mv rlimit-bad1.profile rlimit-bad-fsize.profile
git mv rlimit-bad2.profile rlimit-bad-nofile.profile
git mv rlimit-bad3.profile rlimit-bad-nproc.profile
git mv rlimit-bad4.profile rlimit-bad-sigpending.profile
Added on commit d30ae468d ("testing", 2016-11-19).
2025-09-08 12:44:07 -03:00
Kelvin M. Klann
993a9b373e
modif: rlimit: use uppercase suffixes in the code/docs ( #6891 )
...
The proper suffixes (KiB, MiB and GiB) are uppercase.
This is a follow-up to #6890 .
Relates to #4315 .
2025-09-07 12:01:15 +00:00
netblue30
212ac3cb19
update copyright
2025-01-12 19:26:24 -05:00
netblue30
ae8f62dba0
update copyright 2024
2024-01-12 11:23:22 -05:00
glitsj16
9863f982ca
modif: drop deprecated 'shell' option references ( #5894 )
...
The `shell` option has been removed. Remove stale references.
This does NOT remove `shell none`-related code comments in:
- src/firejail/fs_lib.c (L433-L441)
- src/firejail/join.c (L415-L417)
Relates to #5196 .
Suggested by #5891 .
2023-07-19 12:54:53 +00:00
netblue30
80bc00e40f
merges, testing, private-etc
2023-02-16 08:21:50 -05:00
David Fetter
2dc16cc247
Update copyright to 2023 ( #5664 )
2023-02-15 18:57:44 +00:00
Reiner Herrmann
2946b0c04c
tests: check for sh instead of bash in nice.exp
...
(in Debian CI only sh is getting printed)
2023-01-18 19:20:20 +01:00
a1346054
7a5c2b205e
tests: use bash-style [[...]] instead of [...]
2022-09-13 22:37:20 +00:00
a1346054
270f0d95e3
tests: stop mixing tabs and spaces
2022-09-13 22:37:20 +00:00
a1346054
c47ad8b82a
tests: fix underquoting
2022-09-13 22:37:19 +00:00
a1346054
e04d6b7bf5
tests: directly test for presence of command
...
Test directly for presence of command instead of indirectly testing
the return code.
Additionally:
* uses a shell builtin `command -v` instead of external `which`
* `command -v` is the standardized version of `which`
2022-09-13 22:37:18 +00:00
Reiner Herrmann
c971903de0
tests: disable calling curl in dns test, as systemd-resolved is used on CI runner
2022-07-30 10:48:33 +02:00
Reiner Herrmann
4221b15f93
tests: try curl instead of wget for tracing dns resolution
2022-07-30 10:48:33 +02:00
netblue30
bb14c205b5
shell none set as default (6)
2022-06-19 20:03:14 -04:00
netblue30
4caf05b08d
shell none set as default (4)
2022-06-19 17:42:15 -04:00
smitsohu
7578e86ef8
testing: fix expect matching of numbers
...
The sandbox timestamp should not be available for matching
when output is already expected from the next command
(this is only a problem if numeric output if expected from the
first command in the sandbox).
A possible alternative would be to flush the expect output buffer
with 'expect "*"' after the sandbox is up.
2022-02-09 18:30:45 +01:00
smitsohu
9672e30b24
testing
2022-01-23 13:01:40 +01:00
netblue30
121749f0ca
2022 copyright update
2022-01-07 12:23:47 -05:00
smitsohu
c477e00ddd
testing
2021-11-20 14:06:06 +01:00
smitsohu
921c9cc153
join: add support for rlimit options
2021-09-22 20:12:58 +02:00
Reiner Herrmann
ee1ea7d226
style: grammer and codestyle improvements
2021-06-21 23:09:34 +02:00
kuesji koesnu
271dc51fa6
grammar issues and fixing test cases for rlimit
2021-06-20 08:41:33 +03:00
startx2017
2609e5cf0b
copyright update
2021-02-15 08:33:05 -05:00
Reiner Herrmann
af2375300c
tests: improve check for sound capabilities ( #3929 )
...
Fixes : #3928
2021-01-30 12:44:09 +01:00
Reiner Herrmann
42ae2c9fb4
tests: fix formatting in rlimit tests
2020-08-18 00:49:11 +02:00
Reiner Herrmann
45480f36de
tests: fix rlimit test for 32bit archs
...
On 32bit architectures like armhf, the output was "unlimited" instead
of the expected value.
2020-08-14 11:12:51 +02:00
glitsj16
6f3867fdb8
move copyright to 2020 (part 2) ( #3181 )
...
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
2020-01-24 22:46:30 +00:00
netblue30
11418a46c1
dns fixes
2019-10-31 17:37:36 -04:00
smitsohu
b9888e6a38
testing
2019-09-26 10:59:26 +02:00
smitsohu
da84323594
testing suite fixes: remove shell localization
2019-09-24 14:17:37 +02:00
SkewedZeppelin
02339f0ff6
Merge pull request #2684 from dandelionred/master
...
Whitespace fix
2019-06-01 07:22:11 +00:00
Austin Morton
d380de39f0
Add deterministic-exit-code option to ensure firejail exits with the first childs exit code regardless of the termination ordering of orphaned children
2019-05-20 20:59:49 -04:00
dandelionred
17a89ca176
Whitespace fix
2019-05-08 16:45:50 +03:00
smitsohu
0d2f252230
move copyright statement to 2019
2019-02-07 14:58:35 +01:00
Reiner Herrmann
c3edb7511a
tests: make top output independent of username, which could be too long
2018-08-16 18:39:08 +02:00
netblue30
14faf11d2d
centos testing
2018-04-26 10:36:27 -04:00
netblue30
3fe1b06a36
cleanup
2018-04-20 09:28:42 -04:00
netblue30
e19a332008
testing
2018-04-13 11:15:48 -04:00
netblue30
4c71ddbcd8
deprecating --force
2018-04-03 11:01:22 -04:00
netblue30
1fb1bfe20f
testing
2018-04-01 07:48:11 -04:00
netblue30
6ea0e6f273
added support for IPv6 DNS configuration - #1722
2018-01-16 19:16:09 -05:00
startx2017
da3b7b072b
move copyright statement to 2018
2018-01-15 09:46:44 -05:00