New to nsjail: easy way to mount root as overlayfs?

99 views
Skip to first unread message

dbru...@forallsecure.com

unread,
Dec 8, 2018, 4:48:13 PM12/8/18
to nsjail
Hi,
This is probably obvious to other people whether easy or not. Hoping to get some help.

Is it possible to mount the root nsjail dir as overlayfs so any side effects are not permanent?   I want to bind-mount in things like /bin, and allow writing in the jail, but have those side-effects undone on nsjail termination.

Any pointers/help appreciated.

Thanks,
David

Diego Wilson

unread,
Dec 10, 2018, 2:17:20 PM12/10/18
to dbru...@forallsecure.com, nsj...@googlegroups.com
FWIW I have bind mounted an OvelayFS directory into an NsJail instance. I had to setup the OverlayFS before entering the NsJail. I mounted it to a work directory inside the NsJail but I don't see why you couldn't use it for a top level chroot.

--
You received this message because you are subscribed to the Google Groups "nsjail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nsjail+un...@googlegroups.com.
To post to this group, send email to nsj...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nsjail/ae42ebab-27de-4f3c-b168-2fb2f2bf3e37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages