Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox and native messaging #2109

Closed
alkim0 opened this issue Sep 7, 2018 · 7 comments
Closed

Firefox and native messaging #2109

alkim0 opened this issue Sep 7, 2018 · 7 comments

Comments

@alkim0
Copy link
Contributor

alkim0 commented Sep 7, 2018

Hi, somewhat recently, firefox started allowing native apps. However, this requires that another executable be allowed to run in the firefox jail. I'm not quite sure how to do this.

Specifically, I'm trying to use the native app for tridactyl which installs a python script to $HOME/.local/share/tridactyl/native_main.py. Firefox needs to be able to execute this python script (like a shell script, and not as an argument to the interpreter).

I use firejail with a private directory for firefox: firejail --private=~/firefox-jail, and I made sure the python script is installed to the private directory, and I've enabled the firefox-common-addons.profile to allow python. However, I'm continuing to get permission denied errors. Any suggestions?

@Vincent43
Copy link
Collaborator

Vincent43 commented Sep 7, 2018

Try disabling noexec ${HOME} from /etc/firejail/firefox-common.profile. If you have distro with apparmor then you have to add /{,run/firejail/mnt/oroot/}home/** ix, to /etc/apparmor.d/local/firejail-local as well.

@chiraag-nataraj
Copy link
Collaborator

@alkim0 Did @Vincent43's suggestion work?

@alkim0
Copy link
Contributor Author

alkim0 commented Oct 7, 2018

Sorry for the late response, but yes! This does work! Thank you.

@alkim0 alkim0 closed this as completed Oct 7, 2018
@petRUShka
Copy link

@Vincent43, could you please tell if it is possible to narrow folders with exec capability.

Idea is to add noexec to all $HOME but some particular directory.

@petRUShka
Copy link

@alkim0, could you please provide whole configuration changes for native to work?

I've added python and have disabled noexec $HOME but it doesn't work...

noblacklist ${PATH}/python3.7*
noblacklist /usr/lib/python3.7*

@Vincent43
Copy link
Collaborator

@petRUShka you would have to add noexec to all dirs except one which isn't much scalable.

@petRUShka
Copy link

@Vincent43, sad to hear :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants