Commit graph

3692 commits

Author SHA1 Message Date
Kelvin M. Klann
f43382f1e9 Revert "move whitelist/blacklist to allow/deny"
This reverts commit fe0f975f44.

Note: This only reverts the changes from etc.

The 4 aliases introduced on commit 45f2ba544 are mere, well, aliases.
That is, they fail to address the different usability problems discussed
on [#3447][3447] and in fact only make things more confusing (as has
already been mentioned on [this][4379] and later comments).  The main
reason is that the aliases do not meaningfully map to the original
commands.  For example, the commands from each pair below seem like they
would do the exact same thing:

* `allow` and `nodeny`
* `deny` and `noallow`

Additionally, if these aliases are not the final commands, but only a
test/work-in-progress, then keeping the wide-scale search/replace
changes made on commit fe0f975f4 would only serve to cause confusion, as
users of firejail-git, contributors and downstream projects might start
changing the commands used on their profiles, only to later have to
change them again, potentially to completely different commands.

The sooner this is undone the better, as (besides the above reasons) the
more profile changes there are between the original commit and the
revert, the harder it is to e.g.: `git diff` versions of files across
the following revision ranges: before the commit, after the commit but
before the revert and after the revert.  Note: This is still the case
even if a commit is [ignored by `git blame`][4390].

So let us revert fe0f975f4 and only reapply similar large-scale changes
once we have discussed and settled on better commands.

How the revert was applied: Despite using the auto-generated message
from `git revert`, to ensure correctness and to avoid conflicts the
changes were reverted in different steps: Firstly, revert the files
which can be safely reverted directly ("filestorevert"):

    # Find out which files have been changed on fe0f975f44, but have not
    # been changed afterwards and list them on "filestorevert"
    git show --pretty='' --name-only fe0f975f44 -- etc | LC_ALL=C sort >allfiles
    git diff --name-only fe0f975f44..master -- etc | LC_ALL=C sort >filestoignore
    comm -2 -3 allfiles filestoignore >filestorevert

    # Note: There are 3 extra files on filestoignore because they were
    # added after commit fe0f975f44
    wc -l allfiles filestoignore filestorevert | head -n 3
    #   797 allfiles
    #     8 filestoignore
    #   792 filestorevert

    # Automatically revert files in "filestorevert"
    # See https://stackoverflow.com/a/23401018/10095231
    tr '\n' '\000' <filestorevert | xargs -0 git show fe0f975f44 -- |
    git apply --reverse

    printf 'Total files reverted:\n'
    git diff --name-only | wc -l
    # 792

Secondly, do some search/replace on the rest:

    tr '\n' '\000' <filestoignore | xargs -0 sed -i.bak \
      -e 's/allow  /whitelist /' -e 's/noallow  /nowhitelist /' \
      -e 's/deny  /blacklist /' -e 's/nodeny  /noblacklist /' \
      -e 's/deny-nolog  /blacklist-nolog /'

    find etc -name '*.bak' -print0 | xargs -0 rm

Thirdly, verify the result.  The following command shows the difference
between all the changes in etc from before fe0f975f44 and this commit
(inclusive):

    git diff fe0f975f44~1 -- etc

From the output, it looks like all alias changes are fully reverted and
that the other changes to etc (from after fe0f975f44) remain, so the
revert seems to be done correctly.

[3447]: https://github.com/netblue30/firejail/issues/3447
[4379]: https://github.com/netblue30/firejail/issues/4379#issuecomment-876460222
[4390]: https://github.com/netblue30/firejail/issues/4390
2021-07-18 20:39:14 -03:00
Fred Barclay
42a03511d0 Add MS Edge Beta profile
Profile for Dev channel already exists. Profile for "standard" Edge does
as well but is a redirect to Dev profile

See
b9b65f6ca2

Fixes #4409
2021-07-18 17:41:11 -05:00
rusty-snake
6422a6705f
Merge pull request #4288 from rusty-snake/whitelist-run-common
Create whitelist-run-common.inc
2021-07-16 09:29:36 +00:00
netblue30
110a74f094 disable-common.inc update 2021-07-13 07:26:05 -04:00
rusty-snake
2bcf83e612 Fix #4396 -- tracelog causes anki to segfault 2021-07-11 14:17:52 +02:00
rusty-snake
e66ba7cc48 Fix file-roller.profile
[skip ci]
2021-07-09 12:58:29 +02:00
netblue30
d4db5661e4
Merge pull request #4391 from vnepogodin/master
Update Clion profile and Add Clion EAP profile
2021-07-08 08:35:28 -05:00
Vladislav Nepogodin
cbfcf613a5
Sort 2021-07-08 14:17:27 +04:00
Vladislav Nepogodin
b282636489
Add new directories 2021-07-08 13:33:49 +04:00
rusty-snake
5172e3a0aa LC_ALL=C sort disable-programs.inc 2021-07-07 21:41:33 +02:00
Vladislav Nepogodin
3b90a802d9
Revert changes 2021-07-07 22:01:44 +04:00
Vladislav Nepogodin
c2f8d4dfd6
Revert changes 2021-07-07 19:37:17 +04:00
Vladislav Nepogodin
d010afe797
Remove unnecessary 2021-07-07 15:20:44 +04:00
Vladislav Nepogodin
3777bd7fb2
Fix clion
Add new clion-eap profile
Fix broken clion profile
2021-07-07 14:37:51 +04:00
netblue30
fe0f975f44 move whitelist/blacklist to allow/deny 2021-07-05 07:23:31 -04:00
netblue30
c32924b825 deprecated whitelist=yes/no in /etc/firejail/firejail.config 2021-07-04 08:21:06 -04:00
rusty-snake
0bae164447 wrc: allow cups socket 2021-07-03 12:59:58 +02:00
netblue30
0562ceb658 cleanup for the next development cycle 2021-07-01 08:59:59 -04:00
netblue30
9abc12bf9b
Merge pull request #4365 from lxeiqr/sndio-fix
Fix sndio support
2021-07-01 07:36:50 -05:00
rusty-snake
a67bb37b0d Fix gnome-calendar crashes 2021-06-29 08:45:01 +02:00
rusty-snake
835dd5f8eb
Fix #4377 -- telegram-desktop 2.8.2 not starting using firejail-git 2021-06-28 15:59:08 +00:00
netblue30
a3397a78d9
Merge pull request #4332 from rusty-snake/bitwarden-electron
Refactor bitwarden as electron redirect
2021-06-28 09:37:37 -05:00
netblue30
e05610190d
Merge pull request #4369 from pirate486743186/rtv
rtv profile correction
2021-06-27 15:25:47 -05:00
netblue30
ed142c62bf
Merge pull request #4375 from smitsohu/kcmp
remove kcmp from seccomp default drop list
2021-06-27 13:11:20 -05:00
smitsohu
533a57ebe1 remove kcmp from seccomp default drop list (#3219) 2021-06-26 16:46:43 +02:00
smitsohu
46712f70d9
Merge pull request #4340 from smitsohu/kcmp
augment seccomp lists in firejail.config
2021-06-26 16:37:13 +02:00
rusty-snake
a90428833a
Merge pull request #4368 from alxjsn/master
Address #3872 with changes in pipewire for Firefox and Chromium
2021-06-25 06:57:06 +00:00
glitsj16
db6a0fc7d0
allow access to pkgconfig 2021-06-23 17:48:55 +00:00
pirate486743186
3ecb41efbf
Update rtv-addons.profile 2021-06-22 22:16:12 +02:00
pirate486743186
f79bf43e76
comments 2021-06-22 20:42:14 +02:00
pirate486743186
8113ceb03c
corrections 2021-06-22 20:28:06 +02:00
Alex Leahu
e943e2f295 Address #3872 with changes for Librewolf 2021-06-22 11:59:46 -05:00
Alex Leahu
04d15e3e06 Address #3872 with changes in pipewire for Firefox and Chromium 2021-06-22 11:39:04 -05:00
pirate486743186
1ca9046cf1
creating alpine.profile (#4350)
* firecfg.config alpine

* Create alpinef.profile

* Create alpine.profile

* disable-programs.inc alpine

* workaround in comment

* Update etc/profile-a-l/alpine.profile

Co-authored-by: rusty-snake <41237666+rusty-snake@users.noreply.github.com>

* deactivating whitelists in ${HOME}

* comment

Co-authored-by: rusty-snake <41237666+rusty-snake@users.noreply.github.com>
2021-06-21 12:25:19 +00:00
smitsohu
533242ac32 augment seccomp lists in firejail.config 2021-06-20 13:29:48 +02:00
lxeiqr
e6f573b39f
Update etc/inc/whitelist-common.inc
Co-authored-by: rusty-snake <41237666+rusty-snake@users.noreply.github.com>
2021-06-20 12:45:18 +02:00
lxeiqr
3973537c3c Remove a /tmp/ whitelist, move sndio whitelist to common in whitelist-common 2021-06-20 10:30:22 +02:00
lxeiqr
70640cfda2 Add sndio support 2021-06-20 01:16:53 +02:00
rusty-snake
f46f514e83
Fix #4363 -- minecraft-launcher not running with firejail 2021-06-19 19:16:10 +00:00
Reiner Herrmann
6d559182d2
profiles: add profile for tin news reader (#4356) 2021-06-12 20:39:48 +02:00
pirate486743186
326fcf2518
mcomix profile creation (#4338)
* mcomix

* Create mcomix.profile

* tightening

* fixes

* comment
2021-06-10 14:23:34 +00:00
Reiner Herrmann
d95bb8f5a2
Merge pull request #4348 from NetSysFire/patch-1
Update weechat.profile
2021-06-08 17:07:15 +00:00
Reiner Herrmann
814eec54f3
Merge pull request #4347 from pirate486743186/w3m
Update w3m.profile
2021-06-08 16:56:23 +00:00
rusty-snake
bec22bd93e Refactor bitwarden as electron redirect (follow-up) 2021-06-08 12:49:39 +02:00
rusty-snake
5e0628892f Refactor bitwarden as electron redirect 2021-06-08 12:49:39 +02:00
NetSysFire
1f91fed636
Update etc/profile-m-z/weechat.profile
remove whitespace to comply with the profile template

Co-authored-by: rusty-snake <41237666+rusty-snake@users.noreply.github.com>
2021-06-08 11:12:36 +02:00
NetSysFire
4e35df105d
Update weechat.profile
weechat needs access to `/usr/share/weechat` if you have any global scripts installed. The directory is empty by default, so there is no additional risk here.
2021-06-08 03:38:16 +02:00
pirate486743186
db9954f71b
rm disable-write-mnt.inc
Co-authored-by: rusty-snake <41237666+rusty-snake@users.noreply.github.com>
2021-06-07 20:58:37 +02:00
pirate486743186
450d0124f7
Update w3m.profile 2021-06-07 20:34:09 +02:00
pirate486743186
0e588b7e6a
Create qcomicbook.profile 2021-06-06 12:26:21 +02:00