mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1907] Define specific overlay directory in argument #1280
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#1280
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 23, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1907
I want to reuse the overlay directory after I exit from the environment, but while they're saved in the
~/.firejaildirectory, there doesn't seem to be anyway to makefirejailuse them next time I run it.My use case is I want to use it like a container, but based on the existing root of my host system instead of a clean image while a fuck ton of dependencies are downloaded and each container is separately updated every time there are any upgrades available.
In this specific case, I want to install
nginxand a web service within the overlay system, though I still haven't figured out how I may persistently run a service within afirejail.@ghost commented on GitHub (Apr 23, 2018):
I'm no expert in any of this but have you looked at
--private=directory? It may be what you want.It basically sets the home directory of the sandbox. So you can use it again and again even after you terminate
firejail. Not sure if that is what you want though.@oxwivi commented on GitHub (Apr 23, 2018):
@temporaryMan1233, nope that's definitely not it.
--privateonly creates a separate/home, it does not clone the root directory of the system.Other than that, I've discovered I can't use
sudowithin afirejaileven with--noprfileflag:Quite unfortunate.
@Fred-Barclay commented on GitHub (Apr 23, 2018):
@oxwivi Possibly because the correct flag is really
--noprofile? 😃@oxwivi commented on GitHub (Apr 24, 2018):
Thanks for noticing the typo, but the mistake is only in the comments:
@oxwivi commented on GitHub (Apr 24, 2018):
It's the same without
--overlay; seems like it's a different issue:Speaking of which, what's the use case of
--noprofile?@oxwivi commented on GitHub (Apr 24, 2018):
... IDK what happened, but I installed repo version over my compiled version on Ubuntu 16.04 and both
ip addrandsudoare working perfectly fine. Now, back to original issue of specifyingoverlaydirectory. @netblue30, please.@oxwivi commented on GitHub (Apr 24, 2018):
Fuck me, there's
overlay-named, but it's not fucking mentioned in the 16.04 manpages. Fuck my life.@oxwivi commented on GitHub (Apr 24, 2018):
May I scream?
@oxwivi commented on GitHub (Apr 24, 2018):
I learned only
sudo firejailwill allowoverlaywithsudo.