Commit graph

4206 commits

Author SHA1 Message Date
glitsj16
365ac85441
Fix whitelisting for wusc (#5526)
Overlooked [this comment](https://github.com/netblue30/firejail/pull/5389#discussion_r992471940) that pointed out a mistake I made.
2022-12-14 18:01:24 +00:00
glitsj16
f99a296347
clipit hardening (#5521)
* clipit hardening

* clipit: fix hardening

* clipit: add xdotool lib to private-lib
2022-12-12 13:10:48 +00:00
glitsj16
91b6abb4f0
private-etc: always reference 'alternatives' (#5517)
* private-etc: always include 'alternatives'

* private-etc: always include 'alternatives'

* private-etc: always include 'alternatives'

* private-etc: always include 'alternatives'
2022-12-09 12:37:13 +00:00
glitsj16
0e133dc034
New profile: tesseract (#5516)
* Add firecfg support for tesseract

* Add tesseract to 'New profiles' section in README.md

* Create tesseract.profile

* tesseract: fix private-etc

* tesseract: fix XDG black/whitelisting

* tesseract: use 'seccomp socket' instead of 'protocol unix'

As kindly suggested by @rusty-snake.

* tesseract: add 'restrict-namespaces'

As kindly suggested by @rusty-snake.

* tesseract: use full seccomp filtering

The tesseract application works fine without 'protocol' or 'seccomp socket'.
2022-12-09 12:36:28 +00:00
Kelvin M. Klann
e52f5e0028
Merge pull request #5498 from kmk3/spotify-allow-adblock
spotify.profile: allow spotify-adblock paths
2022-12-08 10:00:12 +00:00
Kelvin M. Klann
48c3045d3f
Merge pull request #5496 from kmk3/kcalc-fix-mkfile
kcalc.profile: fix mkfile without mkdir & comment legacy paths
2022-12-08 10:00:01 +00:00
Kelvin M. Klann
9acdcce743 spotify.profile: allow spotify-adblock paths
As suggested by @glitsj16[1].

Project homepage: https://github.com/abba23/spotify-adblock

Configuration paths:

* /etc/spotify-adblock/config.toml
* ~/.config/spotify-adblock/config.toml

Fixes #5494.

[1] https://github.com/netblue30/firejail/discussions/5494#discussioncomment-4280887

Reported-by: @Rewig95
2022-12-02 14:10:37 -03:00
glitsj16
116557c2f8
firefox-common-addons: fix whitelisting in ${RUNUSER} (#5497)
* fix whitelisting in ${RUNUSER}

See discussions https://github.com/netblue30/firejail/discussions/5495 for context.

* Prevent whitelisting ${RUNUSER} comment
2022-12-01 12:30:24 +00:00
glitsj16
0f9a4c8d0c
AppArmor: add more examples to firejail-local (#5493)
* AppArmor: add more examples to firejail-local

* comments fixes
2022-12-01 12:12:16 +00:00
Kelvin M. Klann
f6360fc046 kcalc.profile: stop creating legacy KDE paths
Leave them commented.

With this commit, there are no more profiles creating paths in ~/.kde
nor in ~/.kde4:

    $ git grep -e '^mkdir .*\.kde' -e '^mkfile .*\.kde' -- etc
    $

See also commit 3ef030257 ("ktorrent.profile: stop creating legacy KDE
paths", 2022-10-11) / PR #5415.
2022-12-01 04:58:46 -03:00
Kelvin M. Klann
9b87289d22 kcalc.profile: fix mkfile without mkdir
firejail may fail to create the following files:

* ~/.kde/share/config/kcalcrc
* ~/.kde4/share/config/kcalcrc

Because it does not create the preceding directories beforehand:

* ~/.kde/share/config
* ~/.kde4/share/config

See also commit 7f1906dba ("ktorrent.profile: fix mkfile without mkdir",
2022-10-11) / PR #5415.
2022-12-01 04:57:06 -03:00
glitsj16
860bd545b5
[firefox-common.profile] Add DRM support when using psd (#5486) 2022-11-28 09:19:03 +00:00
netblue30
5286ec802e
Merge pull request #5415 from kmk3/ktorrent-fix-mkfile
ktorrent.profile: fix mkfile without mkdir & comment legacy paths
2022-11-25 11:34:28 -05:00
netblue30
a92d573266
Merge pull request #5476 from k4leg/fix_pycharm
fix: PyCharm profiles
2022-11-25 11:29:57 -05:00
glitsj16
86c6cd4b35
[email-common.profile] add localtime to private-etc 2022-11-25 04:39:56 +00:00
Bogdan Ruslanovich Drozd
298820647b
fix: PyCharm profiles
Do not use `private-cache`, because PyCharm places in cache
directories stuff like spelling dictionary (i. e. if you download
spelling dictionary with `private-cache`, on restart PyCharm you need
to download spelling dictionary again).
2022-11-23 21:20:18 +03:00
Kelvin M. Klann
274db94266
Merge pull request #5449 from kmk3/lutris-fix-lol
lutris.profile: fix running League of Legends
2022-11-23 16:39:26 +00:00
Kelvin M. Klann
1a69932720
Merge pull request #5442 from rusty-snake/fixes
Profile fixes
2022-11-23 16:39:07 +00:00
pirate486743186
bf747f4eba
fix opening links in firefox youtube-viewers-common.profile (#5352)
Co-authored-by: pirate486743186 <>
2022-11-23 07:32:49 +00:00
glitsj16
86eecba151
Add python3 support/fixes to nicotine (#5459)
* Add python3 support to nicotine

* Revert private-bin changes

Adding shell and python3 support to private-bin kept breaking nicotine for the user who reported it on IRC. Let's revert it as suggested by @rusty-snake.
2022-11-22 23:08:08 +00:00
Kelvin M. Klann
72b662fa68 ktorrent.profile: add missing private-bin paths
Package-provided binaries:

    $ pacman -Q ktorrent
    ktorrent 22.08.3-1.2
    $ pacman -Qlq ktorrent | grep bin/.
    /usr/bin/ktmagnetdownloader
    /usr/bin/ktorrent
    /usr/bin/ktupnptest

Environment: Artix Linux
2022-11-22 03:28:44 -03:00
Kelvin M. Klann
3ef0302575 ktorrent.profile: stop creating legacy KDE paths
Leave them commented.
2022-11-22 03:28:36 -03:00
Kelvin M. Klann
7f1906dba7 ktorrent.profile: fix mkfile without mkdir
firejail fails to create the following files:

* ~/.kde/share/config/ktorrentrc
* ~/.kde4/share/config/ktorrentrc

Because it does not create the preceding directories beforehand:

* ~/.kde/share/config
* ~/.kde4/share/config

Relates to #5414.
2022-11-22 02:52:58 -03:00
glitsj16
98e8f28164
Add support for cinelerra-gg (#5467)
* Create cinelerra-gg

* add cinelerra-gg to `New profiles` section

* Add cinelerra-gg to firecfg.config
2022-11-13 00:05:03 +00:00
Jan Sonntag
25930fd70a
Add netlink to list of allowed protocols (#5464)
Fixes #5463 by adding netlink to the list of allowed protocols
2022-11-10 17:48:52 +00:00
Frostbyte4664
bd119c5ecd
Add godot3 redirect (#5456)
* Create godot3.profile

* Add godot3 redirect to firecfg.config
2022-11-07 02:27:22 +00:00
Kelvin M. Klann
e045a601e3 lutris.profile: fix running League of Legends
@Latrolage on Oct 20, 2022[1]:

> When I open the game the only error line which appears is this
> `modify_ldt: Operation not permitted`

So as suggested by @Latrolage[1] and @rusty-snake[2], allow the
`modify_ldt` syscall in seccomp.

Fixes #5430.

[1] https://github.com/netblue30/firejail/discussions/5430#discussion-4488996
[2] https://github.com/netblue30/firejail/discussions/5430#discussioncomment-3924098

Reported-by: @Latrolage
2022-11-03 12:23:02 -03:00
rusty-snake
4c08719b9f
Update etc/profile-a-l/evince.profile 2022-10-30 17:37:43 +00:00
rusty-snake
242bb5b8fb Fix #5311 -- Whalebird-4.6.2 does not work with the default whalebird.profile 2022-10-30 17:53:43 +01:00
rusty-snake
adc10aacad Fix #4604 -- Brave browser takes a long time opening under Firejail 2022-10-30 17:41:11 +01:00
rusty-snake
6829fe6a12 Fix #5392 -- Evince doesn't remember settings 2022-10-30 17:32:30 +01:00
rusty-snake
e24eadec1c Fix freetube mpris support
Closes #5437
2022-10-30 17:02:47 +01:00
netblue30
549d59f55d fix nolocal netfilter 2022-10-25 14:33:56 -04:00
netblue30
7968af73cd
Merge pull request #5389 from glitsj16/qutebrowser-fixes
Harden qutebrowser profile
2022-10-11 11:12:25 -04:00
netblue30
daf5fdf69f
Merge pull request #5298 from pirate486743186/patch-1
electron-mail.profile refactoring
2022-10-11 11:04:47 -04:00
pirate486743186
8562ec9852 electron-mail.profile: refactor and redirect to electron.profile
Changes:

- redirect to electron.profile
- fix program name
- update program description
- allow /bin/sh
- allow opening links in Firefox
- remove no3d, nonewprivs, noroot, protocol, seccomp
- add machine-id, nosound
- remove private-bin, disable-mnt
- harden private-etc
- allow D-Bus notifications, secrets
2022-10-05 17:48:25 +02:00
Kelvin M. Klann
dbebd71db1 disable-common.inc: blacklist doas binary
OpenDoas is an alternative to sudo.  It is an unofficial port of
OpenBSD's doas.  Details:

    $ LC_ALL=C pacman -Si galaxy/opendoas |
      grep -e '^Version' -e '^Description' -e '^URL'
    Version         : 6.8.2-1
    Description     : Run commands as super user or another user
    URL             : https://github.com/Duncaen/OpenDoas

Environment: Artix Linux.

Also, add /etc/doas.conf to etc/ids.config.
2022-10-05 08:06:47 -03:00
Kelvin M. Klann
3142a1d772 Revert "mpv: whitelist mpv-mpris (#5386)"
This reverts commit 393c5beff2.

Which broke mpv:

    $ mpv --version
    Cannot start application: No such file or directory

Probably because mpv itself uses many libraries and it has plugins that
may depend on files in /usr/lib as well:

    $ pacman -Qlq mpv | grep /lib/ | grep -v '/$'
    /usr/lib/libmpv.so
    /usr/lib/libmpv.so.1
    /usr/lib/libmpv.so.1.109.0
    /usr/lib/pkgconfig/mpv.pc
    $ strings /usr/bin/mpv | grep '^lib.*\.so' | sort -u | wc -l
    53
    $ pacman -Qlq yt-dlp | grep /lib/ | grep -v '/$' |
      cut -f -4 -d / | sort -u
    /usr/lib/python3.10
    $ pacman -Q mpv yt-dlp
    mpv 1:0.34.1-5
    yt-dlp 2022.09.01-1

Environment: Artix Linux.

Also, private-lib is disabled by default in firejail.config (see #5190)
and mpv.profile does not use private-lib, so there should be no need to
whitelist anything in /usr/lib in the default profile.
2022-10-04 05:33:00 -03:00
glitsj16
669c18c606
Harden qutebrowser 2022-10-03 18:32:54 +00:00
glitsj16
f2ba0b4a22
Fix D-Bus mpris support 2022-10-02 06:01:09 +00:00
glitsj16
8685f25445
unbreak D-Bus mpris support 2022-10-02 05:55:46 +00:00
glitsj16
2297257745
Harden qutebrowser profile 2022-10-01 19:23:19 +00:00
Hugo
393c5beff2
mpv: whitelist mpv-mpris (#5386)
This is an mpv plugin for MPRIS integration.

See: https://github.com/hoyon/mpv-mpris
2022-10-01 14:39:50 +00:00
netblue30
445d6b525d
Merge pull request #5360 from glitsj16/ff-dbus
Streamline Firefoxes D-Bus filtering
2022-09-26 10:43:13 -04:00
netblue30
6a19625e47
Merge pull request #5371 from kmk3/profiles-allow-exiftool
profiles: allow perl/exiftool on the relevant profiles
2022-09-26 10:24:44 -04:00
Kelvin M. Klann
b6a21daad9 arduino.profile: allow devel paths
As mentioned in its description, this profile is intended for an IDE, so
allow paths used for development and stop including the following
profiles:

* disable-devel.inc
* disable-exec.inc
* disable-interpreters.inc

Fixes #5292.
2022-09-17 10:58:59 -03:00
Kelvin M. Klann
2aa9bbb4e5 profiles: allow perl/exiftool on the relevant profiles
Programs that seem to support exiftool:

    $ LC_ALL=C pacman -Sii perl-image-exiftool |
      grep -e '^Version' -e '^Required' -e '^Optional For' | head -n 3
    Version         : 12.42-1
    Required By     : digikam  geotag  gitlab-workhorse  mat2  rapid-photo-downloader
    Optional For    : darktable  geeqie  gpsprune  hugin  jpeg-archive  ranger  recoll  shutter

Environment: Artix Linux.

Note for hugin.profile: Does not currently work with private-bin on
Arch/Artix; see the private-bin comment on
etc/profile-a-l/exiftool.profile.

Relates to #5365.
2022-09-17 09:32:08 -03:00
glitsj16
3e7b65da2e
discord: fix issues with command-line usage (#5368)
* use both capitalized and regular discord commands to private-bin

* use both capitalized and regular discord commands to private-bin

* add awk and which to private-bin for better xdg-open support

* use both capitalized and regular discord commands to private-bin

* use both capitalized and regular discord commands to private-bin

* refactor CamelCased discord profiles

* refactor CamelCased discord profiles

* fix private-{bin,opt} sorting

* fix private-{bin,opt} sorting

* unfuck private-{bin,opt} sorting

* unfuck private-{bin,opt} sorting

* fix sorting once more for CI

* fix sorting once again for CI
2022-09-14 17:36:01 +00:00
godbless
2cfe3ea9d0
Fix Firefox 'Profile not found' for psd (v6.45) (#5348)
* Fix Firefox 'Profile not found' for psd (v6.45)

code change: `whitelist ${RUNUSER}/psd/*firefox*`

fixes: #4568

* Whitelist ${RUNUSER}/psd/*firefox*

* Fix workflow for github
2022-09-08 19:15:58 +00:00
glitsj16
7bc7887aae
De-complicate D-Bus naming schemes
Inspired by https://github.com/netblue30/firejail/pull/5352/files/c04ceb49c7001bb931a35667c831545cd64aeece#r963032151.
2022-09-05 17:14:57 +00:00