mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #379] Could you add Profiles for Libreoffice and wps-office? #271
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#271
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 @HighIO on GitHub (Mar 23, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/379
Hi There, I run:
How can I get it work? Or anyone use firejail to jail an Office Suite, please share it.
THX
@chiraag-nataraj commented on GitHub (Mar 24, 2016):
So I haven't tried to restrict it quite so heavily because I found a much easier solution - blacklist internet access. Here's my libreoffice profile:
Note that if you're using firejail stable, you'll have to make
/usr/bin/libreofficeinto a shell script (or make a new one in/usr/local/bin) that runs/usr/lib/libreoffice/program/soffice.bin.@curiosity-seeker commented on GitHub (Mar 24, 2016):
@chiraag-nataraj : I think blacklisting internet access is a bit problematic as you won't be able to install/update extensions. My profile on Manjaro with Plasma 5 is:
Whitelist globbing as suggested in #216 would make things easier, of course.
@chiraag-nataraj commented on GitHub (Mar 24, 2016):
@curiosity-seeker : Since extensions don't need to be updated every single time you use LibreOffice, I would actually suggest using
net nonein the profile and using--ignore=netif you want to update your extensions. This is mainly because malicious macros could connect to remote servers if you always enable network access.@nick75e commented on GitHub (Mar 24, 2016):
Hi!
@chiraag-nataraj : Does the profile in your first post work? Because when I use
private-etc, LibreOffice fails with this error:Do you have a solution?
@curiosity-seeker commented on GitHub (Mar 24, 2016):
@chiraag-nataraj : Yes, you're right, and I will implement that, too. However, I wonder if that setting would be appropriate for a pre-defined profile that comes with Firejail as it might break important functionalities for many users who wouldn't expect that. Perhaps @netblue30 should add a comment to temporarily disable this switch for installing/updating extensions. That might be the best compromise.
EDIT: A nice enhancement would be a switch like
--net-urlallowed=http://extensions.libreoffice.org/
@curiosity-seeker commented on GitHub (Mar 24, 2016):
@chiraag-nataraj : Could you explain why you didn't add the various *.inc files to your profile?
@chiraag-nataraj commented on GitHub (Mar 24, 2016):
@curiosity-seeker : I didn't include the default ones because I'm using whitelist instead of blacklist - that is, they'd merely be redundant (all of the files that it blocks wouldn't be available anyway due to things like private-etc, private-bin, and so on)
@nick75e : That's odd...it works for me (I use the profile all the time). My profile doesn't restrict access to libraries at all, so it sounds like that's a libreoffice issue. Does libreoffice work if you launch it without firejail? Another thought is this: try disabling private-bin and see if it works.
@nick75e commented on GitHub (Mar 24, 2016):
It works without Firejail. It also works with and without
private-bin@chiraag-nataraj commented on GitHub (Mar 24, 2016):
@nick75e : So it works now?
@curiosity-seeker commented on GitHub (Mar 24, 2016):
@chiraag-nataraj
I'm not sure if private-bin etc. covers everything blacklisted in the .inc files, e.g. the various /var subfolders.
@nick75e commented on GitHub (Mar 24, 2016):
@chiraag-nataraj
Using both or only
private-etcdoesn't but using onlyprivate-binworks.@curiosity-seeker commented on GitHub (Mar 24, 2016):
For me it works with the 3 private-* entries. I also kept the *.inc files, redundant or not.
@chiraag-nataraj commented on GitHub (Mar 24, 2016):
@curiosity-seeker : Hmmm...I guess so. I guess I gave myself some leeway with the profile since I never allow it to access the internet.
@nick75e : Hmmm...that's interesting. I don't have that problem on my computer. Can you try running firejail with the
--debugand--traceoptions (withprivate-etcenabled)?@nick75e commented on GitHub (Mar 24, 2016):
@chiraag-nataraj Here's the log for LibreOffice.
@chiraag-nataraj commented on GitHub (Mar 24, 2016):
@nick75e what are the contents of white.inc and common.inc? I'm assuming you're using the same libreoffice profile I posted, so the only differences should be whatever's in
white.incandcommon.inc.@nick75e commented on GitHub (Mar 24, 2016):
@chiraag-nataraj commented on GitHub (Mar 25, 2016):
@nick75e I can't quite figure out what the issue is...can you try not including your
common.incandwhite.incfiles and see if it works?@nick75e commented on GitHub (Apr 4, 2016):
Hi!
Sorry for the delay. I've finally made it work:
the most important being
ld.so.cache@curiosity-seeker commented on GitHub (Apr 7, 2016):
Interesting! For me the entries suggested by @chiraag-nataraj are sufficient.But it may differ from distro to distro. I'm using Manjaro.
@chiraag-nataraj commented on GitHub (Apr 16, 2016):
@nick75e Interesting...what distro do you use?
@nick75e commented on GitHub (Apr 16, 2016):
I use Linux Mint but I installed Libreoffice from The Document Foundation's ppa which may be why your profile doesn't work for me.
@chiraag-nataraj commented on GitHub (Apr 16, 2016):
@nick75e ah okay...yeah, maybe...
@nick75e commented on GitHub (Apr 19, 2016):
Oh and I forgot to mention but you have to allow python in
private-bin, Libreoffice uses it to recover documents after a crash and it may also be used by some addons (but not sure).@netblue30 commented on GitHub (Jun 19, 2016):
I just put in profiles for all applications in LibreOffice.