Commit graph

10713 commits

Author SHA1 Message Date
RedRampage
b2d5d173cb profiles: Add socket-activated ssh-agent socket
Added another default ssh-agent socket path, that is used in Debian for
socket-activated agent.
2025-12-02 00:15:52 +03:00
dependabot[bot]
599960144d build(deps): bump step-security/harden-runner from 2.13.1 to 2.13.2
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.13.1 to 2.13.2.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](f4a75cfd61...95d9a5deda)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-version: 2.13.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 16:13:03 +00:00
dependabot[bot]
48035653de build(deps): bump github/codeql-action from 4.31.2 to 4.31.5
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.2 to 4.31.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](0499de31b9...fdbfb4d275)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.31.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 16:12:55 +00:00
dependabot[bot]
2891fc6956 build(deps): bump actions/checkout from 5.0.0 to 6.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](08c6903cd8...1af3b93b68)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 16:12:45 +00:00
netblue30
5935c370ea private-etc updates, qbittorrent profile fixes 2025-12-01 08:20:33 -05:00
netblue30
65571c3cc1 remove --enable-globalcfg software config option 2025-11-30 08:34:05 -05:00
netblue30
ee879a2f26 fix arg-max-count and arg-max-len options in firejail.config 2025-11-30 08:26:56 -05:00
netblue30
a517fa91a2 rework in progress, more to come...
commit d1aeeb4 - add arg-max-count and arg-max-len options to firejail.config
2025-11-28 17:17:26 -05:00
Kelvin M. Klann
e37c71ec95 docs: man: xephyr-extra-params: use full program path
Added on commit 15b0e0761 ("feature: xephyr-extra-params option",
2025-10-30) / PR #6952.

Relates to #6963.
2025-11-28 08:10:43 -03:00
Kelvin M. Klann
50496d3799 RELNOTES: add/reword xephyr-extra-params item
This amends commit bd94e87eb ("sorting xephyr-extra-params",
2025-11-27).

Relates to #6952.
2025-11-28 08:10:43 -03:00
netblue30
bd94e87eb7 sorting xephyr-extra-params 2025-11-27 09:57:57 -05:00
netblue30
a8cfb94b7a
Merge pull request #6952 from yureitzk/xephyr-options
feature: add --xephyr-extra-params= command
2025-11-27 09:45:31 -05:00
Kelvin M. Klann
907916d045 modif: check for --version during early init
Move it from `run_cmd_and_exit()` to right after the --quiet/--debug
checks.

This simplifies the sandbox check code by removing its own --version
check.

See also commit 5cd597e5d ("fix --version", 2016-06-28).

This is a follow-up to #6969.
2025-11-23 02:34:14 -03:00
Kelvin M. Klann
768b2a2e64 bugfix: do sandbox check before checkcfg()
The check for an existing sandbox (and running `run_no_sandbox()` if
applicable) must be done before calling `checkcfg()`, since if
`private-etc` is already in effect, running firejail again will abort at
`checkcfg()`, as /etc/firejail/firejail.config will not be accessible
(see #6966).

This is a follow-up to #6969.

Relates to #2877 #6878 #6951 #6966.

Kind of relates to #6592.
2025-11-22 07:01:11 -03:00
Kelvin M. Klann
7cd56fa47d RELNOTES: simplify feature items 3
This amends commit 7f5f02b00 ("RELNOTES: simplify feature items",
2025-11-16).

Relates to #4633 #6878.
2025-11-22 07:00:50 -03:00
Kelvin M. Klann
b834337799 tests: appimage: fix duplicated "TESTING ERROR" numbers
This amends commit b50812ff5 ("appimage testing", 2023-03-01).

Relates to #6971.
2025-11-22 06:58:20 -03:00
Kelvin M. Klann
d2bd561a69
bugfix: check for --quiet/--debug earlier during init (#6969)
Parse them as early as possible (after dropping permissions, etc), as
`checkcfg()` checks for `arg_debug` (for example).

Relates to #6878 #6951.

Kind of relates to #6579.
2025-11-22 09:07:10 +00:00
Kelvin M. Klann
86b15acf2d RELNOTES: simplify feature items 2
This amends commit 7f5f02b00 ("RELNOTES: simplify feature items",
2025-11-16).

Relates to #3678 #4633 #6878 #6951.
2025-11-21 03:17:21 -03:00
Kelvin M. Klann
d4c896a0c0 docs: README.md: add missing closing parens
This amends commit 05cf5cd93 ("docs: add distribution-specific
build/install instructions (#6964)", 2025-11-15).
2025-11-19 04:13:17 -03:00
Kelvin M. Klann
7f5f02b00d RELNOTES: simplify feature items
Relates to #3678 #4633 #6878 #6951.
2025-11-16 05:48:42 -03:00
Kelvin M. Klann
715cd6a7d5 RELNOTES: add feature, test and docs items
Relates to #3678 #6951 #6955 #6962 #6963 #6964 #6965.
2025-11-16 05:44:58 -03:00
Kelvin M. Klann
491b46cfa3
docs: always use full path to program in examples (#6963)
And add it to the bug report template checklist.

To avoid potential issues due to firejail-in-firejail.

Commands used to search and replace:

    perl -pi -e '
      s/(firejail)( .*)? (blobby|dig|firefox|galculator|gedit|gimp|handbrake|icecat|iceweasel|mc|openbox|transmission|vlc|warzone2100|wget|xed|xterm)/$1$2 \/usr\/bin\/$3/;
    ' README.md src/firejail/usage.c src/man/*.in
    perl -pi -e 's/^\s*(firefox \\?-)/\/usr\/bin\/$1/' \
      src/man/firejail.1.in

Note: Some parts were edited manually.

Note: Most tests still use the program basename.

Relates to #2877.
2025-11-16 08:39:05 +00:00
Kelvin M. Klann
be065d1301
docs: clarify that only latest and dev versions are supported (#6965)
To avoid wasting time due to (for example):

* Bugs that were already fixed
* Old versions with different/missing verbosity in the output
* Behavior that only affects (or differs in) old versions
* Copying and pasting profile lines which contain commands that are
  unsupported in old versions (or that depend on other changes to
  profiles in the current version)

This is a follow-up to #6964.
2025-11-15 04:53:08 +00:00
Kelvin M. Klann
05cf5cd93c
docs: add distribution-specific build/install instructions (#6964)
For better integration with the system and package manager.

Based on .gitlab-ci.yml.

This is a follow-up to #6962.
2025-11-15 03:53:20 +00:00
Kelvin M. Klann
7e26e940c2 docs: add "make installcheck" to build/install commands
This amends commit e5acc7997 ("docs: improve build/install commands
(#6962)", 2025-11-12).
2025-11-11 22:35:21 -03:00
Kelvin M. Klann
e5acc79976
docs: improve build/install commands (#6962)
Changes:

* Format
* Quote URL
* Use `&&` where applicable
* Use parallel make

Kind of relates to commit 500d8f2d6 ("ci: run make in parallel where
applicable", 2023-08-14) / PR #5960.
2025-11-12 00:46:39 +00:00
pierretom
380e90169e update and add system calls for several architectures
Closes #6956.
2025-11-10 08:35:20 +01:00
pierretom
519a4c5cc3 add a Bash script to generate system calls for several architectures
This script fetches current system calls from kernel sources then extracts and
installs them in the src/include directory.
Syscalls can be updated by regenerating them, ideally once before each release.
contrib/syntax/lists/syscalls.list is synchronized too.
It generates also etc/templates/new_syscalls.txt, this makes it easier to update
groups and to inform users about new syscalls added.
The script must reside in the src/tools directory and requires the cURL CLI program.
2025-11-10 07:39:05 +01:00
Kelvin M. Klann
bdb8c831e9
tests: man: disable test due to timeout (#6955)
It still timeouts randomly, even with the changes from commit b613c3062
("tests: man: fix timeout error (#6949)", 2025-10-29).

When the test passes, the relevant commands appear to execute in less
than a second.

Log from a successful run of test-network on commit f5d82cc58 ("feature:
add env-max-count / env-max-len to firejail.config (#6951)",
2025-11-01)[1]:

    2025-11-01T13:57:55.6533345Z /usr/bin/man
    2025-11-01T13:57:55.6533649Z TESTING: man
    2025-11-01T13:57:55.6564238Z spawn /bin/bash
    2025-11-01T13:57:57.1602002Z rm -f /tmp/t
    2025-11-01T13:57:57.1612808Z runner@runnervmxu1zt:~/work/firejail/firejail/test/sysutils$ rm -f /tmp/t
    2025-11-01T13:57:57.1613686Z runner@runnervmxu1zt:~/work/firejail/firejail/test/sysutils$
    2025-11-01T13:57:57.1614509Z <st/sysutils$ firejail /usr/bin/man firecfg > /tmp/t
    2025-11-01T13:57:57.1615014Z runner@runnervmxu1zt:~/work/firejail/firejail/test/sysutils$ cat /tmp/t
    2025-11-01T13:57:57.1615466Z FIRECFG(1)                     firecfg man page                     FIRECFG(1)
    2025-11-01T13:57:57.1615727Z
    2025-11-01T13:57:57.1615799Z NAME
    2025-11-01T13:57:57.1616119Z        Firecfg - Desktop integration utility for Firejail software.
    [...]
    2025-11-01T13:57:57.1627646Z OPTIONS
    2025-11-01T13:57:57.1627819Z        --add-users user [user]
    2025-11-01T13:57:57.7620833Z
    2025-11-01T13:57:57.7621314Z all done
    2025-11-01T13:57:57.7621564Z
    2025-11-01T13:57:57.7634133Z /usr/bin/wget
    2025-11-01T13:57:57.7634892Z TESTING: FIXME: wget

Misc: It seems that the last commit to disable a test in this manner was
commit 7e91a0414 ("tests: disable broken wget tests in utils/sysutils",
2023-08-28).

[1] https://github.com/netblue30/firejail/actions/runs/18997725218/job/54259933026
2025-11-03 05:28:49 +00:00
Kelvin M. Klann
f5d82cc58b
feature: add env-max-count / env-max-len to firejail.config (#6951)
Replace the hardcoded `MAX_ENVS` and `MAX_ENV_LEN` limits with new
global configuration options, `env-max-count` and `env-max-len`, which
limit the maximum number of environment variables and the maximum length
of each environment variable (respectively).

Also, include the environment name and value in the "too long
environment variable" error message, similarly to the "too long
argument" error message (see PR #4676 and PR #5677).

This is a follow-up to #6878.

Closes #3678.
2025-11-01 13:56:23 +00:00
dependabot[bot]
f0b8d485b4 build(deps): bump github/codeql-action from 3.30.5 to 4.31.2
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.30.5 to 4.31.2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](3599b3baa1...0499de31b9)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.31.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-01 10:52:22 +00:00
Yurei TZK
15b0e07617
feature: xephyr-extra-params option 2025-10-30 15:55:58 +03:00
Kelvin M. Klann
f6730f554f RELNOTES: add feature, bugfix, test, docs and profile items
Relates to #4633 #6878 #6930 #6937 #6942 #6947 #6948 #6949.
2025-10-30 03:11:46 -03:00
tht2005
d1aeeb4fa1
feature: add arg-max-count and arg-max-len options to firejail.config (#6878)
Replace the hardcoded `MAX_ARGS` and `MAX_ARG_LEN` limits with new
global configuration options, `arg-max-count` and `arg-max-len`, which
limit the maximum number of command-line arguments and the maximum
length of each argument (respectively).

Closes #4633.

Co-authored-by: Kelvin M. Klann <kmk3.code@protonmail.com>
2025-10-30 05:54:31 +00:00
Kelvin M. Klann
b613c30625
tests: man: fix timeout error (#6949)
For a long time there have been intermittent failures in CI when trying
to open the firejail man page with `man`[1]:

    2025-08-05T14:15:03.2742048Z runner@pkrvm76nib4usnx:~/work/firejail/firejail/test/sysutils$ rm -f /tmp/t
    2025-08-05T14:15:03.2742725Z runner@pkrvm76nib4usnx:~/work/firejail/firejail/test/sysutils$
    2025-08-05T14:15:03.2743522Z <ejail/test/sysutils$ firejail man firejail > /tmp/t
    2025-08-05T14:15:03.2743913Z cat /tmp/t
    2025-08-05T14:15:03.5645359Z troff: <standard input>:89: warning [p 2, 2.3i]: cannot adjust line
    2025-08-05T14:15:03.5862718Z troff: <standard input>:3738: warning [p 40, 11.8i]: cannot adjust line
    2025-08-05T14:15:13.5920525Z runner@pkrvm76nib4usnx:~/work/firejail/firejail/test/sysutils$ TESTING ERROR 0

It seems to happen due to a timeout, so use the firecfg man page
instead, as that results in over 10 times less lines in the output and
thus should be less likely to cause issues:

    $ man src/man/firejail.1.in | wc -l
    3057
    $ man src/man/firecfg.1.in | wc -l
    184

Also, use the full path to `man` just in case.

[1] https://github.com/netblue30/firejail/actions/runs/16752574198/job/47426439265
2025-10-29 09:10:44 +00:00
Kelvin M. Klann
9176141d35
profiles: wusc: add /usr/share/gtksourceview-5 (#6947)
Note: We ship a file in this directory since commit 16afd8c8e ("Add
basic gtksourceview language-spec (#5502)", 2022-12-04)

This is a follow-up to #6909.
2025-10-28 16:19:05 +00:00
pierretom
ec6b976f25
bugfix: add missing macros in profile.template (#6948) 2025-10-28 16:13:59 +00:00
pierretom
678d81843f
bugfix: fix French translation for ${PICTURES} macro (#6942)
From /usr/share/locale/fr/LC_MESSAGES/xdg-user-dirs.mo:

    msgid "Pictures"
    msgstr "Images"
2025-10-19 14:46:50 +00:00
sk84
5079daa9cd
profiles: steam: allow ~/.local/share/doublefine (#6937)
Allow the folder that Day of the Tentacle Remastered uses to store save
files. Without adding them in the steam profile, save states don't work
in the game (or it didn't even start, don't remember exactly).

See https://www.pcgamingwiki.com/wiki/Day_of_the_Tentacle_Remastered

Probably it would also allow save games for other games done by
doublefine (https://store.steampowered.com/developer/doublefine), but I
have no other game from them and I have not checked it.
2025-10-19 09:26:35 +00:00
Kelvin M. Klann
ff6fb07132
Merge pull request #6930 from kmk3/docs-clarify-ipc-namespace
docs: man: clarify what ipc-namespace affects
2025-10-10 11:38:46 +00:00
Kelvin M. Klann
2e23c32cc7 docs: man: clarify what ipc-namespace affects
Clarify that even though Unix sockets are an IPC mechanism, IPC
namespaces do not affect them (see ipc_namespaces(7)).

Relates to #6928.

Reported-by: @tupo2
2025-10-09 01:46:44 -03:00
Kelvin M. Klann
4171127fae docs: man: format/sync ipc-namespace descriptions
Relates to #6928.
2025-10-09 01:46:43 -03:00
Kelvin M. Klann
649ad88039 RELNOTES: add profile items
Relates to #6900 #6904 #6907 #6909 #6920 #6923.
2025-10-04 04:17:04 -03:00
Lucas
a2defd1b99
profiles: blink-common-hardened: disable noroot to fix saving files (#6920)
It breaks the file picker, which seems to be using Portals.
2025-10-04 06:55:34 +00:00
t-m-w
4811964e9d
profiles: mullvad-browser: allow readlink and realpath (#6923)
The start-mullvad-browser script uses readlink and realpath when
it is a symlink, so these need to be included as part of private-bin,
or the following error dialog appears, and the browser fails to start:

    start-mullvad-browser cannot be run using a symlink on this operating system.

This problem is observed using Mullvad Browser 14.5.7 as packaged
for Fedora 42.

Repo: https://repository.mullvad.net/rpm/stable/mullvad.repo
Fedora script path: /usr/lib/mullvad-browser/start-mullvad-browser
Upstream: 2f802636b8/projects/browser/RelativeLink/start-browser (L202-207)
2025-10-03 15:52:34 +00:00
dependabot[bot]
f6b666d9d5 build(deps): bump step-security/harden-runner from 2.13.0 to 2.13.1
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.13.0 to 2.13.1.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](ec9f2d5744...f4a75cfd61)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-version: 2.13.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-01 22:48:14 +00:00
dependabot[bot]
fc2ffe73d7 build(deps): bump github/codeql-action from 3.29.11 to 3.30.5
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.29.11 to 3.30.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](3c3833e0f8...3599b3baa1)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 3.30.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-01 22:43:00 +00:00
Kelvin M. Klann
54d5bb04bc
profiles: wusc: add /usr/share/gtk-4.0 (#6909)
This directory is part of the gtk4 package (version 1:4.20.1-1) on Artix
Linux.

Add it just in case, as wusc already contains the same analogous paths
for gtk2 and gtk3.

This is a follow-up to #6907.
2025-09-26 02:44:58 +00:00
Kelvin M. Klann
3a05a0a53b
profiles: wusc: add /usr/share/glycin-loaders (#6907)
This is apparently needed by glycin/gdk-pixbuf2, which is used by many
programs, such as Firefox and GIMP.

Relates to #6906.

Reported-by: @myrslint
Suggsted-by: @myrslint
2025-09-24 14:09:31 +00:00
Lucas
a942b0bac7
new profile: trivalent (#6900)
https://github.com/secureblue/Trivalent
2025-09-23 01:50:51 +00:00