mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1929] FJ + Thunderbird + GPG + Keycard #1291
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#1291
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 @cyrinux on GitHub (May 8, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1929
Hi,
I'm running archlinux with hardened kernel and apparmor enabled.
I use a yubikey for sign with gpg my mail in thunderbird, I speak the day to try to make it working sign in firejail.
The problem seems to be the pinentry program. By default it find my pinentrey-gnome3 which say "No Gcr System Prompter available, falling back to curses" and seems fallback to ncurse but i can see it. For resume I have no prompt for enter card pin and this fail quickly.
Gcr is:
❯ pacman -Qi gcr Name : gcr Version : 3.28.0-3 Description : A library for bits of crypto UI and parsing Architecture : x86_64 URL : https://git.gnome.org/browse/gcr Licenses : GPL2 Groups : None Provides : None Depends On : dconf gtk3 libgcrypt p11-kit Optional Deps : None Required By : gnome-keyring gnome-online-accounts gvfs libcryptui nm-connection-editor Optional For : pinentry Conflicts With : None Replaces : None Installed Size : 5.44 MiB Packager : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> Build Date : Thu 03 May 2018 01:22:39 AM CEST Install Date : Sat 05 May 2018 07:38:59 PM CEST Install Reason : Installed as a dependency for another package Install Script : No Validated By : SignatureIf I force pinentry to pinentry-gtk-2 I have not this error but can find the problem.
Do you have an idea?
Regards
@Vincent43 commented on GitHub (May 8, 2018):
First of all try running
firejail --noprofile thunderbirdand check if it works.After that look at
/etc/firejail/thunderbird.profile. Copy it to~/.config/firejail/thunderbird.profileand try disabling some options until you find what causes breakage.If you run thunderbird from console you may check if it print any useful messages.
@cyrinux commented on GitHub (May 8, 2018):
Works with
--noprofileand with removing firefox.profile include in tb profile.But so then seems very light and I can open a link :)
Thus, i would like to use chromium instead of firefox.
If I include chromium profile instead of firefox this doesn't work too.
I have no readable error in console :/
If I understand correctly all TB and FF stuff are in firefox-common, and breaking option are inside.
@cyrinux commented on GitHub (May 8, 2018):
So, I have replace include of firefox by chromium profile, then update chromium-common I have allow dbus and add capability
CAP_NET_BIND_SERVICE Bind a socket to Internet domain privileged ports (port numbers less than 1024).This works but seems I raise a lot the attack surface with dbus and net_bind_service in TB and Chromium.
What is the way to make this only for thunderbird binary and keep chromium by default?
@Vincent43 commented on GitHub (May 8, 2018):
Instead of
includeyou can copy chromium/firefox profile contents into thunderbird profile. This way you can tweak it without modifying chromium/firefox behavior. For better security you may consider resigning from direct opening links from thunderbird in browser and copy-paste links manually instead. That way you may create more fine grained thunderbird profile. Example:@cyrinux commented on GitHub (May 9, 2018):
Thanks @Vincent43 , I see, there is no magic inside ... If I allow dbus, I can't also filter dbus event I imagine :)
@Vincent43 commented on GitHub (May 9, 2018):
Yeah, dbus support can be only toggled on/off. Flatpak filters dbus access so you may try it instead.
@chiraag-nataraj commented on GitHub (Jul 26, 2018):
Closing, as this seems to be resolved? @cyrinux If you have some enhancement requests, please open a new ticket (e.g. filtering specific dbus requests).