mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1908] Error installing and running services in sudo firejail no profile overlay #1281
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#1281
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 @oxwivi on GitHub (Apr 24, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1908
aptseems to be able to run and install packages, but service units provided by the installed packages seems to be missing:Same error with all three
overlay.overlay-tmpfsand--overlay-named=name.@netblue30 commented on GitHub (Apr 24, 2018):
Your command will work fine for regular user programs. For example, I install blockout2 (Tetrix clone) and run it as a regular user:
Watch what happens if you try to install some server program (lighttpd - simple http server):
This is systemd failing to start the service. Systemd runs in a different filesystem namespace and it won't find your new server. In such cases you will have to start your service manually from the command line, bypassing anything related to systemd or the regular UNIX init in /etc/init.d directory.
Other problems you could run into are related to seccomp. seccomp is enabled by default in overlay setups, and it will kill your process if debian install tries to load new kernel modules or to mount/unmount files in the filesystem.
@oxwivi commented on GitHub (Apr 24, 2018):
Is there any workaround to allow
systemdmanage services infirejailnamespace? Security is not a concern here, I want to usefirejaillike a container to isolate the filesystem and services in the sandbox so I can easily get rid of it and restart if need be.I'd use a container if I could use the operating system's root directory as the base, but none of the container tech I know of allows me to.
@netblue30 commented on GitHub (May 2, 2018):
There could be a workaround, since systemd seems to be integrated with containers such as Docker, but I've never tried it.
@chiraag-nataraj commented on GitHub (Jul 25, 2018):
Here's some info regarding how systemd interfaces with containers: https://www.freedesktop.org/wiki/Software/systemd/ContainerInterface/
@chiraag-nataraj commented on GitHub (May 21, 2019):
@oxwivi, has this been resolved?
@rusty-snake commented on GitHub (Jun 26, 2019):
@oxwivi
I'm closing here due to inactivity, please fell free to reopen if you have more questions.