Commit graph

842 commits

Author SHA1 Message Date
Kelvin M. Klann
04efbb2763 profiles: replace x11 socket blacklist with disable-X11.inc
Replace all occurrences of `blacklist /tmp/.X11-unix` with
`include disable-X11.inc`, which blacklists more X11-related files.

Commands used to search and replace:

    $ git grep -Ilz '^blacklist /tmp/.X11-unix' -- \
      etc/profile*/*.profile | xargs -0 perl -0 -pi -e '\
        s/\nblacklist \/tmp\/.X11-unix\n/\n/; \
        s/(\ninclude disable-xdg.inc\n)/\ninclude disable-X11.inc$1/; \
        s/(\ninclude disable-[^Xx\n]+\n)(\n|# )/$1include disable-X11.inc\n$2/'

Note: The following files were also edited manually:

* etc/profile-a-l/erd.profile
* etc/profile-a-l/links-common.profile
* etc/profile-m-z/termshark.profile
* etc/profile-m-z/tmux.profile
* etc/profile-m-z/tshark.profile

Relates to #4462 #4854.
2024-03-24 03:42:59 -03:00
Kelvin M. Klann
5ec7c2292c sstmp.profile: sort disable includes
Move disable-X11.inc before disable-xdg.inc for consistency with other
profiles.

Added on commit 73a6fced2 ("New profile: ssmtp (#5544)", 2022-12-21).
2024-03-23 09:09:00 -03:00
glitsj16
96d66fa624
New profile: tqemu.profile (#6255)
Description: QEMU frontend without libvirt.

https://github.com/thanoulis/tqemu
2024-03-23 06:10:41 +00:00
glitsj16
3f4d6df041
New profile: metadata-cleaner.profile (#6246)
Description: Python GTK3 application to view and clean metadata in
files, using mat2.

https://gitlab.com/rmnvgr/metadata-cleaner
2024-03-20 11:42:44 +00:00
pirate486743186
ae1e5e3e9c
remove porn-cli.profile (#6284)
Co-authored-by: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
2024-03-20 08:29:53 +00:00
glitsj16
2d6d4c59e6
Rename etc/session-desktop.profile to etc/profile-m-z/session-desktop.profile 2024-03-19 12:14:28 +00:00
glitsj16
3c6016e6b3
New profile: session-desktop.profile (#6259)
Description: Encrypted messenger.

https://github.com/oxen-io/session-desktop/
https://aur.archlinux.org/packages/session-desktop
https://aur.archlinux.org/packages/session-desktop-bin
https://aur.archlinux.org/packages/session-desktop-appimage

Note: The AUR packages all work with the profiles.
2024-03-19 11:57:10 +00:00
glitsj16
161318dc2b
New profile: mimetype.profile (#6247)
Description: Determines the file type.

https://metacpan.org/release/File-MimeInfo
https://archlinux.org/packages/extra/any/perl-file-mimeinfo/
2024-03-19 06:08:35 +00:00
glitsj16
898273ac8e
New profile: tvnamer.profile (#6256)
Description: Automatic TV episode file renamer.

https://github.com/dbr/tvnamer
2024-03-18 15:08:22 +00:00
glitsj16
d6c32c1105
New profile: textroom.profile (#6254)
Description: Full Screen text editor heavily inspired by Q10 and
JDarkRoom.

https://code.google.com/p/textroom/
https://aur.archlinux.org/packages/textroom
2024-03-18 14:32:55 +00:00
glitsj16
5aa533f9e1
New profile: rymdport.profile (#6251)
Description: Encrypted sharing of files, folders, and text between
devices.

https://github.com/Jacalz/rymdport
2024-03-18 14:31:05 +00:00
glitsj16
a97d53383f
New profile: statusof.profile (#6253)
Description: Python script to check the status of a list of URLs.

https://github.com/Arthurdw/statusof
2024-03-14 18:48:02 +00:00
glitsj16
2b5dfef742
qt6ct: add dbus-filtering rules (#6272)
Add support for qt6ct packages that use XDG desktop portal.

https://github.com/MikeWalrus/qt6ct#branch=colorscheme-portal
https://aur.archlinux.org/packages/qt6ct-xdg-colorscheme-git
2024-03-12 14:45:30 +00:00
glitsj16
d506bbe7e2
torbrowser-launcher fixes (#6270)
Apparently Tor Browser 13.0.11 (based on Mozilla Firefox 115.8.0esr)
changed a few things. The former versions installed under
`${HOME}/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser`
and now under
`${HOME}/.local/share/torbrowser/tbb/x86_64/tor-browser/Browser`.

All of our tor-browser-foo.profile profiles redirect to
torbrowser-launcher.profile and are covered by the fixes.

torbrowser.profile was not tested. It redirects to
firefox-common.profile and seems to be Gentoo-specific.

Fixes #6269.
2024-03-09 16:44:30 +00:00
glitsj16
4c0dbfaf86
profiles: remove blacklisting of qt5ct/qt6ct paths (#6266)
Blacklisting qt5ct/qt6ct configuration and data paths breaks styling in all
apps that use them.

This was working as expected before #6249 and #6250, so remove the
blacklisting.
2024-03-06 08:56:36 +00:00
Michele Sorcinelli
b9d11ed33c
ssh: whitelist gcr-ssh-agent unix socket (#6258)
Since gnome-keyring 1.46, the ssh-agent functionality has been removed
and gcr-ssh-agent is the recommended alternative.

Source:
  - https://gitlab.gnome.org/GNOME/gcr/-/merge_requests/67
  - https://wiki.archlinux.org/title/GNOME/Keyring#SSH_keys
2024-03-05 14:02:40 +00:00
glitsj16
5b1bddd652
archivers: drop private-etc now that it's in archiver-common (#5655)
Commit 29da82d added `private-etc` to `archiver-common.profile`.

To avoid doubled options this PR removes it from archiver profiles which
already had it.

Relates to #5610.
2024-03-05 09:19:42 +00:00
glitsj16
41b8cba505
New profile: qt6ct (#6250) 2024-03-05 09:03:40 +00:00
glitsj16
301826a674
New profile: qt5ct (#6249) 2024-03-05 08:59:11 +00:00
glitsj16
ea62569ce6
New profiles: lz4 and redirects (#6241) 2024-03-05 08:54:34 +00:00
glitsj16
d1c6080e02
virt-manager: deny access to /usr/libexec (#6238) 2024-03-05 08:50:08 +00:00
glitsj16
8eeff292a5
makepkg: fix ordering (#6265) 2024-03-05 08:48:37 +00:00
netblue30
5d1a1e61b9
Merge pull request #6227 from glitsj16/virt-manager
New profile: virt-manager
2024-02-29 10:07:01 -05:00
netblue30
54823b0c3d
Merge pull request #6216 from powerjungle/master
multimc: instances not running, because of missing permissions
2024-02-29 10:04:36 -05:00
glitsj16
82e30a8291
Create virt-manager.profile 2024-02-27 19:31:29 +00:00
glitsj16
4e2fb28e93
profiles: drop paths already in wusc (#6218)
Drop paths present in etc/inc/whitelist-usr-share-common.inc from
profiles that include it.
2024-02-23 07:11:58 +00:00
powerjungle
1a2e8ab852
multimc: instances not running, because of missing permissions
When starting an instance, in the logs, a failed attempt to load the lwjgl
library is shown and the game doesn't run.
The library is in the /tmp directory. The reason for this appears to
be, in the lwjgl source code, the shared library loading function,
extracts in the temporary directory and continues from there.
This is fixed by whitelisting.

The reason for adding "ignore noexec /tmp" as well, is that without it, the game
can't run, even if the directory is whitelisted. It seems the library needs
to be loaded from /tmp.

A second error for a failed attempt to access /home/user/.cache/JNA is also
shown in the logs. This is also fixed by whitelisting.
2024-02-19 18:21:11 +01:00
glitsj16
7ab8d45dcc
Merge pull request #6211 from glitsj16/nextcloud-fix
nextcloud: D-Bus filtering changes
2024-02-19 09:05:09 +00:00
glitsj16
5954f72e92
Merge pull request #6180 from haplo/rawtherapee
Profile for RawTherapee
2024-02-19 09:03:36 +00:00
glitsj16
b97e853a33
nextcloud: fix the comment link to the wiki FAQ 2024-02-16 22:02:46 +00:00
glitsj16
bc3968bb25
nextcloud: edit dbus comment as requested in review 2024-02-16 20:35:26 +00:00
glitsj16
15fc09ec77
nextcloud: harden D-Bus filtering 2024-02-16 20:21:11 +00:00
Kelvin M. Klann
bb45aa505d
tesseract.profile: add quiet (#6173)
Tesseract is a CLI program and its output may be parsed by other
programs (such as `ocrmypdf`).  Including messages from firejail in the
output may break the parsing, so remove them.

Fixes #6171.

Reported-by: @kmille
2024-01-31 19:33:49 +00:00
Fidel Ramos
84a5f1a60e
rawtherapee.profile 2024-01-31 11:28:13 +00:00
pirate486743186
bc47419f4e
profiles: add profiles for gtk youtube viewers symlinks (#6154)
Committer note: For each profile there is both XXX-gtk and gtk-XXX (such
as lbry-viewer-gtk and gtk-lbry-viewer).

XXX-gtk is the symlink
gtk-XXX is the actual file

Co-authored-by: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
2024-01-19 14:31:50 +00:00
Kelvin M. Klann
d35847f9a4
profiles: use only /usr/share/lua* (#6150)
To ensure that it includes luajit paths as well:

* /usr/share/lua
* /usr/share/luajit-2.1

And remove all entries of the same path without the wildcard, to avoid
redundancy.

Misc: The wildcard entries were added on commit 56b60dfd0 ("additional
Lua blacklisting (#3246)", 2020-02-24) and the entries without the
wildcard were partially removed on commit 721a984a5 ("Fix Lua in
disable-interpreters.inc", 2020-02-24).

This is a follow-up to #6128.

Reported-by: @pirate486743186
2024-01-08 11:56:27 +00:00
glitsj16
4e936f523c
man: allow Perl (#6143)
gropdf (`man -Tpdf`) needs Perl (see #6142).
2024-01-04 00:17:45 +00:00
netblue30
23c42be17d
Merge pull request #6128 from pirate486743186/master
mpv: whitelist /usr/share/mpv
2023-12-21 09:52:19 -05:00
netblue30
46d70ca09d
Merge pull request #6118 from NetSysFire/patch-4
minecraft-launcher.profile: allow keyring access
2023-12-21 09:49:25 -05:00
Kelvin M. Klann
56391cf84f
obs.profile: allow lua (#6131)
Some plugins may require it[1]:

    error: os_dlopen([...]): libluajit-5.1.so.2: [...]: Permission denied

    warning: Module '/usr//lib/obs-plugins/frontend-tools.so' not loaded

[1] https://github.com/netblue30/firejail/issues/6130#issue-2040800338
2023-12-14 21:36:34 +00:00
pirate486743186
d0ee85981e mpv: whitelist /usr/share/mpv
Use case: You install scripts in  `/usr/share/mpv` but they remain
inactive. You then symlink them to `/etc/mpv` to activate them if you
want.
2023-12-13 23:29:50 -03:00
archaon616
3d80f604c8
steam.profile: Allow Project Zomboid (#6117) 2023-12-11 17:29:22 +00:00
NetSysFire
e70bde448f
Use dbus-user filter 2023-12-08 22:31:52 +01:00
NetSysFire
4465d30f4e
Update minecraft-launcher.profile 2023-12-07 20:51:52 +01:00
netblue30
03e75e5f1d
Merge pull request #6070 from kmk3/sort-py-csort
build: sort.py: use case-sensitive sorting
2023-11-24 17:06:10 -05:00
netblue30
762878ebb0
Merge pull request #6066 from nutta-git/patch-1
steam.profile: allow process_vm_readv syscall
2023-11-24 17:04:26 -05:00
Reiner Herrmann
3c303ab1dc profiles: whitelist alternative data directory for tesseract
on Debian the data is in /usr/share/tesseract-ocr/
2023-11-18 12:08:32 +01:00
glitsj16
644245081c
New profile: tiny-rdm (#6083)
* disable-programs.inc: add support for tiny-rdm

* Create tiny-rdm.profile

* firecfg.config: add support for tiny-rdm
2023-11-11 19:56:48 +00:00
duevo
bcda95c067 steam.profile: allow process_vm_readv syscall
EA Origin (game launcher) won't launch without this.

See https://github.com/netblue30/firejail/issues/5185#issuecomment-1776516159
2023-10-31 06:34:01 -03:00
Kelvin M. Klann
98e34c444b build: sort.py: use case-sensitive sorting
To match how things are sorted elsewhere, such as with `noblacklist` /
`whitelist` lines (vertically) in profiles and in
ci/check/profiles/sort-disable-programs.sh and src/etc-cleanup/main.c.

This makes the order in `private-etc` always be groups (`@group`), then
uppercase paths, then lowercase paths.  Example from
etc/profile-m-z/softmaker-common.profile:

    private-etc @tls-ca,SoftMaker,fstab

Note that this does not affect a significant amount of profiles; most
changes are in `private-bin` / `private-lib` lines and in `private-etc`
lines for newer profiles that do not use groups.  This is partly due to
commit 5d0822c52 ("private-etc: big profile changes", 2023-02-05)
replacing `X11` with `@x11` in `private-etc` lines and then commit
0f996ea4d ("private-etc: groups modified", 2023-02-05) removing
`Trolltech.conf` from `private-etc` lines and using case-sensitive
sorting in them.

Relates to #5610.
2023-10-27 16:40:39 -03:00