Firejail: LibreOffice won't start on Parrot 4.3

Created on 24 Oct 2018  ยท  14Comments  ยท  Source: netblue30/firejail

Hi,

I have faced with issue on Parrot 4.3:

$libreoffice %U
Reading profile /etc/firejail/libreoffice.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 18644, child pid 18645
Child process initialized in 84.41 ms
Final linking of kernel DynamicKernel failed.

Parent is shutting down, bye...
$firejail --apparmor libreoffice
Reading profile /etc/firejail/libreoffice.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 18747, child pid 18748
Child process initialized in 88.34 ms
Warning: an existing sandbox was detected. /usr/bin/libreoffice will run without any additional sandboxing features
Final linking of kernel DynamicKernel failed.

Parent is shutting down, bye...

Most helpful comment

Hi,
I don't remember exactly.
Just try to run the following command from my previus message:
/usr/bin/loffice

And also try to update your system packages:
sudo apt update && sudo apt upgrade

It's quite the old issue, I think it should be fixed.

All 14 comments

Can you please try if firejail --noprofile libreoffice works?

Somethings else to try would be firejail --tracelog libreoffice, and then check journalctl | grep blacklist if there is something related to libreoffice.

Thanks.

@smitsohu iirc Parrot ships many modified profiles.

@Max1mCom can you also paste in /etc/firejail/libreoffice.profile too?

Hello guys, thank you for your help.

Can you please try if firejail --noprofile libreoffice works?
Somethings else to try would be firejail --tracelog libreoffice

These commands are 'freezing' my system:
https://prnt.sc/lbn7r6

And command sudo journalctl | grep blacklist gives me the blank output. I mean, it doesn't output anything.

And LibreOffice doesn't work on Parrot right after installation.
I use ru-RU locale.

can you also paste in /etc/firejail/libreoffice.profile too?

โ”Œโ”€[โœ—]โ”€[max@parrot]โ”€[~]
โ””โ”€โ”€โ•ผ $sudo cat /etc/firejail/libreoffice.profile
# Firejail profile for libreoffice
# Description: Office productivity suite
# This file is overwritten after every install/update
# Persistent local customizations
include /etc/firejail/libreoffice.local
# Persistent global definitions
include /etc/firejail/globals.local

noblacklist ${HOME}/.java
noblacklist /usr/local/sbin
noblacklist ${HOME}/.config/libreoffice

# libreoffice uses java; if you don't care about java functionality,
# comment the next four lines
noblacklist ${PATH}/java
noblacklist /usr/lib/java
noblacklist /etc/java
noblacklist /usr/share/java

include /etc/firejail/disable-common.inc
include /etc/firejail/disable-devel.inc
include /etc/firejail/disable-passwdmgr.inc
include /etc/firejail/disable-programs.inc

include /etc/firejail/whitelist-var-common.inc

# Ubuntu 18.04 uses its own apparmor profile
# uncomment the next line if you are not on Ubuntu
apparmor
caps.drop all
machine-id
netfilter
#nodbus
nodvd
nogroups
#nonewprivs - fix for Ubuntu 18.04/Debian 10
noroot
notv
#protocol unix,inet,inet6  - fix for Ubuntu 18.04/Debian 10
#seccomp  - fix for Ubuntu 18.04/Debian 10
shell none
#tracelog - problems reported by Ubuntu 18.04 apparmor profile in /var/log/syslog

private-dev
private-tmp

noexec ${HOME}
noexec /tmp

join-or-start libreoffice
โ”Œโ”€[max@parrot]โ”€[~]

Final linking of kernel DynamicKernel failed.

Maybe some problem with the DKMS.
Can you then please try another one?

If you have not done so yet, please run libreoffice _once without_ firejail. To do this, give the absolute path on the commandline, e.g. /usr/bin/loffice. Afterwards try if you can start it with firejail as normal.

Should this not help, another command would be firejail --noprofile --allow-debuggers --writable-var --noblacklist=/sys/* libreoffice. If that one works, it would be awesome if you could juggle a bit with the options to find the minimal required set.

Thanks.

Hello,

Thanks a lot.

$firejail --noprofile --allow-debuggers --writable-var --noblacklist=/sys/* libreoffice still freezes interface.

But $/usr/bin/loffice is working.
And after that $loffice is working too.
Libreoffice now is launching as usual.

can you explain the steps you've taken to solve it

Hi,
I don't remember exactly.
Just try to run the following command from my previus message:
/usr/bin/loffice

And also try to update your system packages:
sudo apt update && sudo apt upgrade

It's quite the old issue, I think it should be fixed.

/usr/bin/loffice
Works!!!!

Thank you.
It works.

On Sun, Jan 20, 2019, 12:12 PM bgagan911 <[email protected] wrote:

/usr/bin/loffice

Works!!!!

โ€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/netblue30/firejail/issues/2214#issuecomment-455849599,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Aq6vVzBJKWlVH_YrW1B37r45JJA4O9cvks5vFDL-gaJpZM4X3yiB
.

I can confirm the problem is still there in Parrot Security 4.6. /usr/bin/loffice did the trick. Thanks! :kissing_smiling_eyes:

Has this been fixed?

Neither one of these workarounds work for me.

As @smitsohu already said this worked for me:
If you have not done so yet, please run libreoffice once without firejail.
To do this, give the absolute path on the commandline, e.g. /usr/bin/loffice.

Was this page helpful?
0 / 5 - 0 ratings