mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #3766] [MERGED] Miscellaneous whitelist-runuser-common fixes #4875
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#4875
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/3766
Author: @kris7t
Created: 11/22/2020
Status: ✅ Merged
Merged: 11/22/2020
Merged by: @netblue30
Base:
master← Head:runuser-fixes📝 Commits (2)
31b50beFix typo in thunderbird.profilee24679eWhitelist wayland-1 socket📊 Changes
2 files changed (+2 additions, -1 deletions)
View changed files
📝
etc/inc/whitelist-runuser-common.inc(+1 -0)📝
etc/profile-m-z/thunderbird.profile(+1 -1)📄 Description
whitelist-runuser-common.profilebecause it breaks Enigmail (TB 68) and GnuPG smartcard (TB 78) support. The currentthunderbird.profilehad a small typo, so the include wasn't ignored.However, since the update to Thunderbird 78, Thunderbird does not call the gnupg agent for any GPG public key operations, and only calls it for private key operations if
mail.openpgp.allow_external_gnupgis set (to allow the use of smart cards). So, this being a quite niche use-case, we might think about includingwhitelist-runuser-common.profileanyways, and leaving only a comment for gnupg agent users.Alternatively, I had some success with just
whitelist ${RUNUSER}/gnupg(in conjunction withwritable-run-useralready inthunderbird.profile), but that only works if${RUNUSER}/gnupgalready exists, I think. Maybemkdir ${RUNUSER}/gnupgcould help here?wayland-1socket instead of thewayland-0socket. Here, I just allowwayland-1, too.Situations where
wayland-2or higher ends up being the default socket seem much rarer (but might be possible to trigger with nested compositors, see e.g. sway's wayland backend). So we might think about allowing higher numbers, too.I'm not sure about the
pipewire-0(and possibly higher) sockets. Screen sharing with browsers under Wayland (withwlr-desktop-portal) might rely on them, but I haven't had the chance to experiment.Note that exposing multiple Wayland sockets might be a security hole if multiple sockets are created (e.g. with nested compositors, proxies à la dbus-proxy, or security features provided by compositors) for different application. Such setups are probably extremely niche currently. If they become popular, we might try to add direct support for them inside firejail (like
dbus-useranddbus-system). In the meantime, those require manual configuration, but we should document which Wayland sockets are allowed by default (so they can be blocked when desired).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.