mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3052] electron-mail won't work with firejail unless I specify --no-profile #1915
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#1915
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 @MystesofEternity on GitHub (Nov 23, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3052
https://github.com/vladimiry/ElectronMail/releasesDoesn't work:
firejail electron-mailincluding variants of adding --seccomp and --netfilterWorks:
firejail --noprofile --netfilter=/etc/firejail/nolocal.net electron-mailDoesn't work when --seccomp is addedI need some help knowing which variables are causing it to not run as running the commands in the terminal doesn't give me any logs to find out the problem.
What I also tried is copying /etc/firejail/electron.profile to become /etc/firejail/electron-mail.profile but no luck. Though, maybe I can start from electron.profile and it'll work by just removing some stuff?
Would really appreciate any help!
@ghost commented on GitHub (Nov 23, 2019):
I've put together a testing profile for electron-mail. Can you create ${HOME}/.config/firejail/electron-mail.profile with the below content and post your findings here please? If we can get this to work properly I'll add it to git master as a new profile with firecfg support etcetera. But let's see what this does for you first.
On my Arch machine it works, although I don't have a protonmail account and didn't bother to create one. Also, to tighten the profile I made it a whitelist one and included private-dev. The latter will output some harmless error messages, don't mind these for now. Here's my output:
@MystesofEternity commented on GitHub (Nov 23, 2019):
Hey there, thanks for giving me something to test with!
So here's what happened:
I checked my /etc/firejail directory and indeed, whitelist-usr-share-common.inc doesn't exist
I am using firejail-0.9.68-1 and I am running fedora 30
Could you give me the contents of your
whitelist-usr-share-common.inc? I'll create it and see how it goesA thing to note though:
I commented apparmor because I am using fedora and there is no apparmor there RIP
@ghost commented on GitHub (Nov 23, 2019):
That won't work, as whitelist-usr-share-common.inc functionality isn't available in your firejail version. Just comment that line, like you did with the apparmor option.
You can add the debug option, like so:
firejail --debug electron-mail.@MystesofEternity commented on GitHub (Nov 23, 2019):
Thanks for the heads' up! I commented it out as you said and I am also making use of the --debug option.
So here is another problem:
But it worked after I commented out
seccomp !chrootSadly, adding in --seccomp doesn't seem to work and here's the log:
@rusty-snake commented on GitHub (Nov 23, 2019):
Can you try adding
seccomp.drop @clock,@cpu-emulation,@debug,@module,@obsolete,@raw-io,@reboot,@resources,@swap,acct,add_key,bpf,fanotify_init,io_cancel,io_destroy,io_getevents,io_setup,io_submit,ioprio_set,kcmp,keyctl,mount,name_to_handle_at,nfsservctl,ni_syscall,open_by_handle_at,personality,pivot_root,process_vm_readv,ptrace,remap_file_pages,request_key,setdomainname,sethostname,syslog,umount,umount2,userfaultfd,vhangup,vmspliceinstead ofseccomp !chroot.@MystesofEternity commented on GitHub (Nov 23, 2019):
Wow! It just worked!
That was amazing! :D
If you need any more tweaking/testing for me to do, please tell me
@ghost commented on GitHub (Nov 23, 2019):
@MystesofEternity Creating the electron-mail.profile automatically closed this issue. Feel free to re-open whenever you notice something missing or otherwise not working. Also, when your OS updates firejail, make sure to remove your ~/.config/firejail/electron-mail.profile file, as it will clash with the one in /etc/firejail. Thanks for reporting this here!