mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #489] Firejail reports error 'parent is shutting down, bye' when trying to run ubuntu-clock-app.clock snap package on Ubuntu 16.04 #348
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#348
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 @igor2x on GitHub (Apr 29, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/489
Hi,
Ubuntu 16.04 now supports snap packages. If I understand correctly snap packages are installed in some kind of isolation. But it looks like applications installed using snap can NOT also be used with firejail. See bellow.
Install firejail from official repository
sudo apt-get install firejail
Check firejail version
firejail --version
Above command outputs: firejail version 0.9.38
Search the snap 'ubuntu clock' application
sudo snap find ubuntu-clock-app
Install 'ubuntu clock' application using snap
sudo snap install ubuntu-clock-app
Ubuntu snap packages are installed in /snap/<app_nam>// directory and can be executed from /snap/bin/<app_name>
cd /snap/bin/
ls -l
Note: We see application name is: ubuntu-clock-app.clock
Run application
/snap/bin/ubuntu-clock-app.clock
Note: Application starts-up without a problem and clock is displayed.
Close application using mouse.
Now try to firejail the application.
firejail /snap/bin/ubuntu-clock-app.clock
-------- Error message --------
Reading profile /etc/firejail/generic.profile
Reading profile /etc/firejail/disable-mgmt.inc
Reading profile /etc/firejail/disable-secret.inc
Reading profile /etc/firejail/disable-common.inc
** Note: you can use --noprofile to disable generic.profile **
Parent pid 3770, child pid 3771
Child process initialized
need to run as root or suid
parent is shutting down, bye...
-------- End of Error message --------
Try running as root as message instructs.
sudo firejail /snap/bin/ubuntu-clock-app.clock
-------- Error message --------
Reading profile /etc/firejail/server.profile
Reading profile /etc/firejail/disable-mgmt.inc
** Note: you can use --noprofile to disable server.profile **
Parent pid 3777, child pid 3778
The new log directory is /proc/3778/root/var/log
Child process initialized
Bad system call
parent is shutting down, bye...
-------- End of Error message --------
It looks some problem using firejail and snap applications.
It is going to be interesting how to jail applications using snap package. Mozilla has already announced that Firefox is going to be provided as snap package, see:
https://blog.mozilla.org/futurereleases/2016/04/21/firefox-default-browser-for-linux-users-ubuntu-new-snap-format-coming-soon/
@netblue30 commented on GitHub (Apr 30, 2016):
I'll give it a try and let you know. "Bad system call" probably was generated because seccomp killed some process running inside the sandbox. I don't think it will work with the default profiles.
@netblue30 commented on GitHub (May 2, 2016):
For firejail version 0.9.38 use this profile:
Save it as snap.profile and start the application:
I also put a similar file in git on the master branch, it is installed in /etc/firejail/snap.profile
@igor2x commented on GitHub (May 3, 2016):
Thanks. Problem fixed.