mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3658] read-write permission for /opt/ directory or other shared documents #2304
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#2304
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 @hlvs44 on GitHub (Oct 6, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3658
Hi,
it seems impossible to work on /opt/ directory in read-write mode:
firejail --read-write=/opt/xxx/ libreoffice
ls -la /opt/xxxAs you can see all users of "contabilita" group can access in read and write mode to this directory and this is very important as in this location are stored important shared documents.
My security strategy for libreoffice is just to block internet access to it, not file system access.
I understand from dicumentation that files outside user home directory or not directly owned by the user are remounted in read-only mode by firejail.
No way to change this behavior?
Is it a bug or a missing feature?
My system is:
$ lsb_release -aIf I try with "noprofile" option:
firejail --noprofile --read-write=/opt/xxx/ --net=br1 --ip=198.110.1.2 libreoffice--> NO ERRORS BUT NOTHING HAPPENS, LIBREOFFICE NOT STARTING
If I try with "noprofile" and without network options:
Everything works fine but without bridge option (it's very important as in this way only mysql connections to the server are allowed from bridge subnet and nothing else).
In addition, in libreoffice is missing the menu bar....!!
--> see the picture <---
The question is: how can I just use libreoffice with normal file system privileges?
I just want to block net access (and I've achieved that) but leaving full file system access respecting the way I have configured group permissions in the file system.
Thanks a lot.
ale
PS - my libreoffice:
Relates to:
@rusty-snake commented on GitHub (Oct 7, 2020):
A
writable-optoption like we have for /var (writable-var) or /etc (writable-etc) would be the best IMO.