mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4625] Firejail Incompatible with Ubuntu 21.10 #2730
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#2730
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?
Originally created by @bobsmitherton on GitHub (Oct 19, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4625
Summary: The firejail packet in the packet sources of Ubuntu 21.10 misses the suid bit.
Fix:
sudo chmod u+s /usr/bin/firejailIf you have a launchpad account: https://bugs.launchpad.net/ubuntu/+source/firejail/+bug/1948480/comments/4
Description
Upon upgrading to Ubuntu 21.10, Firejail no longer sandboxes Firefox as designed.
The Firefox browser is no longer restricted to just accessing the /Downloads directory.
In addition, LibreOffice Calc, Impress, and Writer won't start at all.
Hopefully, this security issue can be resolved quickly because I am browsing the Internet without the benefit of a sandbox at this time.
Steps to Reproduce
Part 1: Launching FireTools results in:
In the terminal, I get this:
Part 2: Once Firejail is removed using
sudo apt-get purge --auto-remove firejail, the LibreOffice programs start normally.The LibreOffice programs can work if Firejail is installed but
sudo firecfghas not been run yet (confirmed usingsudo firecfg --listwhich shows no entries).Part 3: Running
firejail firefoxkicks back this message:Expected behavior
Firefox browser should be restricted to just accessing the /Downloads directory after running
sudo firecfg.LibreOffice programs should open.
Actual behavior
I was able to successfully upload test files within Firefox from both the /Pictures and /Music directories thus confirming the sandbox is broken.
LibreOffice programs never start.
Additional context
Furthermore, I tried the PPA located at: https://launchpad.net/~deki/+archive/ubuntu/firejail and that did not solve the issue.
Environment
Edit by @kmk3: Formatting.
@kmk3 commented on GitHub (Oct 19, 2021):
@bobsmitherton commented on Oct 19:
Not sure if this is related or not, but Ubuntu 21.10 comes with Firefox (among
other programs) installed as a snap rather than a normal package (see #4554).
If the default "app store" is used, it also installs certain things as snaps.
And firejail does not work with snaps.
Can you confirm that the programs being executed aren't the snap versions?
@rusty-snake commented on GitHub (Oct 19, 2021):
What did I said? Only 5 days. Fuck yeah, Canonical this time you really shot it down. How long do you actually want to use snaps before you use flatpaks? As long as you used upstart? Or Unity? Or MIR? Did any "innovation" from ubuntu ever make it? Or was it always Red Hat?
@bryn1u commented on GitHub (Oct 22, 2021):
I have exactly the same issue. I installed from repo.
@rusty-snake commented on GitHub (Oct 22, 2021):
Duplicate of #4609
@rusty-snake commented on GitHub (Oct 22, 2021):
https://bugs.launchpad.net/ubuntu/+source/firejail/+bug/1948480
@rusty-snake commented on GitHub (Oct 22, 2021):
@bobsmitherton Nope, you have the snap sandbox and firefox's sandbox.
@reinerh commented on GitHub (Oct 23, 2021):
Hm, somehow firejail was not installed suid root in Ubuntu 21.10.
Build log for 0.9.64.4-1 in 21.04: https://launchpadlibrarian.net/522037166/buildlog_ubuntu-hirsute-amd64.firejail_0.9.64.4-1_BUILDING.txt.gz
Build log for 0.9.64.4-2 in 21.10: https://launchpadlibrarian.net/536116439/buildlog_ubuntu-impish-amd64.firejail_0.9.64.4-2_BUILDING.txt.gz
No idea right now where this broke. Probably in some toolchain package.
@reinerh commented on GitHub (Oct 23, 2021):
I wouldn't get your hopes up, Ubuntu is extremely slow with applying security fixes, even for their LTS releases. For a different actual security issue a patch is available in their bug tracker for many months (see Ubuntu bug 1916767) and the security team is aware of it (they would just need to upload it), but for some reason it's stuck...
If security is important to you and you don't have a good reason for running Ubuntu, I would recommend using something else (e.g. directly Debian).
@rusty-snake commented on GitHub (Oct 23, 2021):
I have little idea about deb/dpkg/... but this looks to me to be in the wrong order (i.e. set suid -> remove suid)
@reinerh commented on GitHub (Oct 23, 2021):
This should be fine. The second call is for binary packages other than firejail (which was already handled by the
override_dh_fixperms-archoverride. And as there is nooverride_dh_missingtarget, this should not do anything.@reinerh commented on GitHub (Oct 23, 2021):
The Ubuntu 21.10 PPA is also affected. sigh
@reinerh commented on GitHub (Oct 23, 2021):
I have asked a Ubuntu dev and he took care of it. A simple rebuild will fix it, as it was affected by some toolchain problem.
I will later also update the PPA (Update: PPA now has a working version in 21.10).
@pseudofunizer commented on GitHub (Oct 26, 2021):
Can you point a link to the PPA? I just updated to 21.10 and realized firejail is broken. :(
EDIT: OK, this is just in; 1hr ago: https://bugs.launchpad.net/ubuntu/+source/firejail/+bug/1948480/comments/4 -- will try those instructions for the time being.
@rusty-snake commented on GitHub (Oct 26, 2021):
https://launchpad.net/~deki/+archive/ubuntu/firejail
EDIT: All you need to make it work is
sudo chmod u+s /usr/bin/firejail@reinerh commented on GitHub (Oct 26, 2021):
Thanks. When you tested it successfully, can you please leave a comment over there? I think otherwise it will not migrate to "-updates".
@reinerh commented on GitHub (Nov 4, 2021):
The fixed version is now released in Ubuntu 21.10.