mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #4410] [MERGED] Revert "move whitelist/blacklist to allow/deny" #5149
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#5149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/4410
Author: @kmk3
Created: 7/18/2021
Status: ✅ Merged
Merged: 7/25/2021
Merged by: @netblue30
Base:
master← Head:revert-allow-deny-etc📝 Commits (2)
f43382fRevert "move whitelist/blacklist to allow/deny"209cdb5Merge branch 'master' into revert-allow-deny-etc📊 Changes
798 files changed (+5094 additions, -5093 deletions)
View changed files
📝
etc/inc/allow-bin-sh.inc(+3 -3)📝
etc/inc/allow-common-devel.inc(+18 -18)📝
etc/inc/allow-gjs.inc(+8 -8)📝
etc/inc/allow-java.inc(+5 -5)📝
etc/inc/allow-lua.inc(+8 -8)📝
etc/inc/allow-nodejs.inc(+2 -2)📝
etc/inc/allow-opengl-game.inc(+2 -2)📝
etc/inc/allow-perl.inc(+8 -8)📝
etc/inc/allow-php.inc(+3 -3)📝
etc/inc/allow-python2.inc(+5 -5)📝
etc/inc/allow-python3.inc(+6 -6)📝
etc/inc/allow-ruby.inc(+2 -2)📝
etc/inc/allow-ssh.inc(+4 -4)📝
etc/inc/disable-common.inc(+355 -355)📝
etc/inc/disable-devel.inc(+40 -40)📝
etc/inc/disable-interpreters.inc(+42 -42)📝
etc/inc/disable-passwdmgr.inc(+15 -15)📝
etc/inc/disable-programs.inc(+1100 -1100)📝
etc/inc/disable-shell.inc(+11 -11)📝
etc/inc/disable-xdg.inc(+4 -4)...and 80 more files
📄 Description
This reverts commit
fe0f975f44.Note: This only reverts the changes from etc.
The 4 aliases introduced on commit
45f2ba544are mere, well, aliases.That is, they fail to address the different usability problems discussed
on #3447 and in fact only make things more confusing (as has
already been mentioned on this 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:
allowandnodenydenyandnoallowAdditionally, 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
fe0f975f4would only serve to cause confusion, asusers 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 diffversions of files acrossthe 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.So let us revert
fe0f975f4and only reapply similar large-scale changesonce 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 thechanges were reverted in different steps: Firstly, revert the files
which can be safely reverted directly ("filestorevert"):
Secondly, do some search/replace on the rest:
Thirdly, verify the result. The following command shows the difference
between all the changes in etc from before
fe0f975f44and this commit(inclusive):
From the output, it looks like all alias changes are fully reverted and
that the other changes to etc (from after
fe0f975f44) remain, so therevert seems to be done correctly.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.