Commit graph

10273 commits

Author SHA1 Message Date
powerjungle
9bd077b39c
bugfix: parse --debug before using it (#6579)
The `arg_debug` flag is being set after some functions check for it,
such as `check_kernel_procs()`.
2024-12-28 15:41:56 +00:00
Lucas
afce4679bf
New profile: b3sum (blake3) (#6577)
https://github.com/BLAKE3-team/BLAKE3
2024-12-27 02:04:15 +00:00
Lucas
028d236b82
profiles: firecfg: fix sha384sum & add b2sum/cksum (#6578) 2024-12-27 01:50:04 +00:00
Kelvin M. Klann
f27775c5a8 profiles: obsidian: whitelist allowed paths
electron-common.profile and blink-common.profile already apply
whitelisting in the user home, so ensure that the allowed paths are
available as well.

Relates to #6314.
2024-12-23 05:03:18 -03:00
Kelvin M. Klann
79c227f9e7 profiles: obsidian: remove gnutls from private-etc
It's included in the `@network` group since commit c8614b329
("private-etc: add gnutls dir to @network group", 2024-11-29).

Relates to #6314.
2024-12-23 04:53:51 -03:00
Kelvin M. Klann
d8f44326ad profiles: syncthing: remove noise and improve comments
Relates to #6536.
2024-12-23 04:53:51 -03:00
Kelvin M. Klann
5799059e5b profiles: syncthing: sort entries
Relates to #6536.
2024-12-23 04:53:51 -03:00
Kelvin M. Klann
52a8d5cab1 profiles: prismlauncher: add dbus-user none
Relates to #6558.

Suggested-by: @rusty-snake
2024-12-23 04:53:51 -03:00
Kelvin M. Klann
a1d4f514a0 profiles: prismlauncher: add missing comment and include
Relates to #6558.

Suggested-by: @rusty-snake
2024-12-23 04:53:51 -03:00
Kelvin M. Klann
111ec6cf9d RELNOTES: add profile items
Relates to #5648 #5905.
2024-12-22 06:06:51 -03:00
Kelvin M. Klann
f98ee1ac6f profiles: transmission-qt: clarify system tray support comment
This amends commit 4d00897f6 ("Enable systray support with condition
?ALLOW_TRAY", 2023-07-18) / PR #5905.

Suggested-by: @rusty-snake
2024-12-22 06:02:27 -03:00
Kelvin M. Klann
5599719839 profiles: kmail/kontact: fix comments and commented code
Relates to #5905.

Suggested-by: @rusty-snake
2024-12-22 05:54:00 -03:00
Kelvin M. Klann
6ff4e090db profiles: kontact: blacklist paths
Added on commit 1e9232662 ("Create kontact.profile", 2023-07-17) /
PR #5905.

Suggested-by: @rusty-snake
2024-12-22 05:54:00 -03:00
Kelvin M. Klann
0f2a93a3f7 profiles: kontact: sort noblacklist entries
Added on commit 1e9232662 ("Create kontact.profile", 2023-07-17) /
PR #5905.
2024-12-22 05:54:00 -03:00
Kelvin M. Klann
967534675f profiles: kontact: fix double include of globals.profile
See etc/templates/redirect_alias-profile.template.

This amends commit 1e9232662 ("Create kontact.profile", 2023-07-17) /
PR #5905.

Suggested-by: @rusty-snake
2024-12-22 05:53:47 -03:00
Kelvin M. Klann
6aacf214b9 profiles: firecfg: disable ghostwriter
It's a markdown editor and commit 358fce3ed ("ghostwriter: hardening and
private-bin improvements", 2023-02-08) / PR #5648 enabled whitelisting
in the user home, so disable it by default.

See commit bd8ed0b4e ("profiles: firecfg: disable text editors (#6477)",
2024-09-19).

Relates to #5648.
2024-12-22 05:37:24 -03:00
Kelvin M. Klann
e142786bfd RELNOTES: add feature, docs and profile items
Relates to #5821 #6192 #6407 #6525 #6565 #6571 #6574.
2024-12-21 06:47:41 -03:00
Andrey Skvortsov
508cd6a6cf
feature: add aarch64 syscalls (#6574)
syscall_aarch64.h was generated from 6.12 kernel headers using the
following commands:

    awk '/__NR_/ { print "{ \"" gensub("__NR_", "", "g", $2) "\", " $3 " },"; }' \
      < unistd_64.h | grep -v 'syscalls'

Closes #5821.

Co-authored-by: Andrey Skvortsov <a.skvorcov@omp.ru>
2024-12-21 09:27:07 +00:00
Kelvin M. Klann
89cec6a9a2 profiles: ghostwriter: fix sorting in private-bin
Commands used to search and replace:

    ./contrib/sort.py etc/inc/*.inc etc/profile*/*.profile

This amends commit 358fce3ed ("ghostwriter: hardening and private-bin
improvements", 2023-02-08) / PR #5648.
2024-12-21 06:13:29 -03:00
Kelvin M. Klann
00ae2ea8ab profiles: irssi: add irssi.conf to private-etc
Added on commit bed96d1ca ("merges", 2024-12-17).

Relates to #6549.
2024-12-19 17:50:21 -03:00
netblue30
f358159795 merges 2024-12-18 09:44:45 -05:00
netblue30
93e02ba202
Merge pull request #5648 from glitsj16/self-ref-fixes
profiles: hardening and self-ref fixes
2024-12-18 09:37:11 -05:00
netblue30
7a8b7eb671
Merge pull request #5905 from Sadoon-AlBader/master
profiles: fix misc in kmail and transmission-qt & add kontact.profile
2024-12-18 09:33:10 -05:00
netblue30
43e1833446
Merge branch 'master' into master 2024-12-18 09:32:01 -05:00
netblue30
f5b7cd96b5
Merge pull request #6314 from konstantin1722/obsidian-profile
New profile: obsidian
2024-12-18 09:26:11 -05:00
netblue30
4a7fa220f8
Merge pull request #6571 from lucasmz-dev/bubblejail-block
profiles: disable-common: add bubblejail paths
2024-12-18 09:22:23 -05:00
LucasMZ
4de34dde86
profiles: disable-common: add bubblejail paths 2024-12-17 21:27:49 -03:00
netblue30
bed96d1cad merges 2024-12-17 08:59:38 -05:00
netblue30
5f69da98c6
Merge pull request #6536 from gcb/syncthing
New profile: syncthing
2024-12-17 08:49:18 -05:00
netblue30
1fb970ec67
Merge pull request #6549 from gcb/gcb-patch-1
New profile: irssi
2024-12-17 08:40:48 -05:00
netblue30
4bca748d6e
Merge pull request #6558 from xplanthris/master
New profile: prismlauncher
2024-12-17 08:36:00 -05:00
netblue30
66c8b86b0d readme/readme.md fixes 2024-12-16 08:46:39 -05:00
netblue30
c3ee874a44 merges 2024-12-15 10:00:16 -05:00
netblue30
beaaf67506
Merge pull request #6525 from tredondo/patch-10
docs: use GitHub issues as the bug reporting address
2024-12-15 09:56:26 -05:00
netblue30
01c5dc4f00
Merge pull request #6407 from kmk3/docs-readme-firetools
docs: clarify that other tools may not be in PPA
2024-12-15 09:52:45 -05:00
netblue30
d4cd125200
Merge pull request #6463 from NetSysFire/endgame-singularity
New profile: singularity (Endgame: Singularity)
2024-12-15 09:48:29 -05:00
netblue30
411ad6c892 lutris profile (#6192) 2024-12-15 09:44:46 -05:00
Kelvin M. Klann
6ba4215c02
profiles: clamav: add /etc/clamav (#6565)
See also commit 2453f0ecf ("email-common.profile: allow clamav plugin
for claws-mail", 2023-03-07) / PR #5719.
2024-12-13 18:06:33 +00:00
Kelvin M. Klann
58c3ebef15 RELNOTES: add build and profile items
Relates to #6556 #6557 #6562.
2024-12-09 10:30:38 -03:00
Kelvin M. Klann
d3848e27ee
profiles: video-players: add missing /usr/share paths (#6557)
Add missing paths for:

* lua (for mpv)
* mplayer
* mpv
* smplayer
* vlc

Apparently mpv plugins may break without the lua path; see commit
ccff014de ("fix Lua in mpv.profile", 2020-07-28) / issue #3554.

Command used to search for relevant profiles:

    $ git grep -IE -l '/\.?(s?mplayer|mpv|vlc)' -- etc

This is a follow-up to commit e4ebbfafe ("profiles: ensure allow-lua
where mpv is allowed (#6555)", 2024-11-29).
2024-12-09 12:49:24 +00:00
Kelvin M. Klann
3826645ef1
Merge pull request #6556 from kmk3/sort-py-strip-ws
build: sort.py: strip whitespace in profiles
2024-12-05 08:01:39 +00:00
Kelvin M. Klann
08e5f8161c build: sort.py: strip whitespace in commands
Currently whitespace is left as is within an entry.

In a `protocol` entry, if there is whitespace between the command and
its argument or around an item, the item in question is dropped from the
output.

Changes:

* `protocol`: Strip all whitespace in the argument
* Other commands: Strip leading/trailing whitespace around each item,
  including any extra whitespace between a command and its argument

Note: Whitespace characters inside paths are left as is, as some paths
(such as `Foo Bar` may contain spaces.

Before:

    $ printf 'private-bin a,b\nprivate-bin  a,b\nprivate-bin  b,a\nprivate-bin  C,A  B\nprotocol  unix,net\nprotocol  inet,unix\n' \
      >foo.profile
    $ ./contrib/sort.py -n foo.profile
    sort.py: checking 1 profile(s)...
    foo.profile:5:-protocol  unix,net
    foo.profile:5:+protocol
    foo.profile:6:-protocol  inet,unix
    foo.profile:6:+protocol unix

After:

    $ printf 'private-bin a,b\nprivate-bin  a,b\nprivate-bin  b,a\nprivate-bin  C,A  B\nprotocol  unix,net\nprotocol  inet,unix\n' \
      >foo.profile
    $ ./contrib/sort.py -n foo.profile
    sort.py: checking 1 profile(s)...
    foo.profile:2:-private-bin  a,b
    foo.profile:2:+private-bin a,b
    foo.profile:3:-private-bin  b,a
    foo.profile:3:+private-bin a,b
    foo.profile:4:-private-bin  C,A  B
    foo.profile:4:+private-bin A  B,C
    foo.profile:5:-protocol  unix,net
    foo.profile:5:+protocol unix
    foo.profile:6:-protocol  inet,unix
    foo.profile:6:+protocol unix,inet
2024-12-05 04:53:41 -03:00
Kelvin M. Klann
53ff8e0ad9 build: sort.py: strip trailing whitespace in all lines
Currently the output is mangled if the last item on the line contains
trailing whitespace and is moved when sorting.

So remove trailing whitespace in all lines (that is, not just in lines
containing supported commands).

Leave leading whitespace as is for now since it could potentially be
used for indentation.

Before:

    $ printf '# hello world  \nprivate-bin a,b  \nprivate-bin b,a  \nprivate-bin  a,b\n' \
      >foo.profile
    $ ./contrib/sort.py -n foo.profile | tr ' ' .
    sort.py:.checking.1.profile(s)...
    foo.profile:3:-private-bin.b,a..
    foo.profile:3:+private-bin.a..,b

After:

    $ printf '# hello world  \nprivate-bin a,b  \nprivate-bin b,a  \n' \
      >foo.profile
    $ ./contrib/sort.py -n foo.profile | tr ' ' .
    sort.py:.checking.1.profile(s)...
    foo.profile:1:-#.hello.world..
    foo.profile:1:+#.hello.world
    foo.profile:2:-private-bin.a,b..
    foo.profile:2:+private-bin.a,b
    foo.profile:3:-private-bin.b,a..
    foo.profile:3:+private-bin.a,b
2024-12-05 04:53:35 -03:00
Kelvin M. Klann
406b1cb18e build: sort.py: rename line variables
Rename `line` to `original_line` to make it less likely to accidentally
read from/write to it instead of the fixed line.

Rename `fixed_line` to `line` to make the code shorter since it is now
referenced much more often (up to 3 times in the same line of code) than
the original line.

See also commit aa17ca5fc ("sort.py: rename protocols to
original_protocols", 2022-10-17) / PR #5429.
2024-12-05 04:43:00 -03:00
Kelvin M. Klann
ced8b19dbe build: sort.py: operate mostly on fixed_line
Set `fixed_line` to `line` and only use the latter when needed.

This makes it easier to modify `fixed_line` multiple times.
2024-12-05 04:43:00 -03:00
Syed Muhammad Shuja Haider
21779e7d37
Remove extra whitespace
Co-authored-by: rusty-snake <41237666+rusty-snake@users.noreply.github.com>
2024-12-02 15:21:18 +03:00
Syed Muhammad Shuja Haider
33f1c1669d
Update etc/profile-m-z/prismlauncher.profile to add a local file
Co-authored-by: rusty-snake <41237666+rusty-snake@users.noreply.github.com>
2024-12-02 15:21:03 +03:00
Syed Muhammad Shuja Haider
ecbb52b7c4
Add seccomp.block-secondary 2024-12-02 15:19:56 +03:00
Kelvin M. Klann
4e8253a695
build: sort.py: add -h option for help (#6562)
Print the usage if `-h` is given.

Kind of relates to #6290.
2024-12-02 10:26:21 +00:00
Syed Muhammad Shuja Haider
0e038f8217
Make it like the template, also harden it 2024-12-01 19:19:13 +03:00