mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5891] libreoffice: cannot open a second document alsongside with the first one ("shell none") #3122
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#3122
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 @Kalle72 on GitHub (Jul 10, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5891
Libreoffice does not open a second document alongside with a first one.
Steps to reprocude:
Dubble-click a document --> document opens --> dubbleclick a second document --> second document does not open (nothing happens except the mouse-arrow shows the clock for some seconds).
Workaround until now: set "noroot" and "shell none" in the libreoffice.profile.
Unfortunately "shell none" is now set by default and cannot be disabled anymore. Therefore the workaround does also not work anymore.
If I use the terminal I get for the first file the following output:
~/Desktop$ libreoffice test1.odt Reading profile /etc/firejail/libreoffice.profile Reading profile /etc/firejail/allow-java.inc Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/whitelist-run-common.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 15635, child pid 15636 Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Warning: not remounting /run/user/1000/gvfs Child process initialized in 137.85 msthen the document is open.
When opening the second document I get:
~/Desktop$ libreoffice test2.odt Reading profile /etc/firejail/libreoffice.profile Reading profile /etc/firejail/allow-java.inc Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/whitelist-run-common.inc Reading profile /etc/firejail/whitelist-var-common.inc Switching to pid 15636, the first child process inside the sandbox Changing root to /proc/15636/root Error: --shell=none configured, but no program specified(I use usr/local/bin/libreoffice to invoke firejail libreoffice. I do this with all firejailed programs in use.)
Kind regards
Kalle
PS: I am on Gentoo and use the current firejail release: 0.9.72.
PPS: Other firejailed "writing-software" works (i.e. softmaker-freeoffice)
PPPS: The libreoffice-probelm occurs since I stated to use firejail (over 5 years ago.), but the workaround solved I until now.
@rusty-snake commented on GitHub (Jul 10, 2023):
Maybe a bug with join-or-start.
Maybe a duplicated of #5598.
@ghost commented on GitHub (Jul 10, 2023):
Off-topic
7462580810/src/firejail/profile.c (L374-L377)We still have a few files referencing
shell none. Maybe it's a good idea to clean those up before cutting a new release.@Kalle72 commented on GitHub (Jul 13, 2023):
@rusty-snake: True story: the profile has a "join-or-start libreoffice" line. Additionally I share the
Error:--shell=none configured, but no program specifiedwith the bug "5598" mentioned.@netblue30 commented on GitHub (Jul 13, 2023):
Marking it as a bug, thanks @Kalle72
Question: why do you need to disable noroot?
noroot is used to prevent the program from rising privileges. For example ping:
ping tries to open a raw socket, which is a privileged operation; noroot prevents the escalation; ping complains suggesting the program should be installed with cap_net_raw capability or SUID.
Do you have some SUID program being called by libreoffice?