schroot: new package to securely enter a chroot and run a command or login shell

Signed-off-by: Javier Marcet <javier@marcet.info>
This commit is contained in:
Javier Marcet
2020-03-04 10:08:08 +01:00
parent 5cfea02d62
commit 207fd60ad1
4 changed files with 334 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh /etc/rc.common
START=94
start() {
[ -d /var/lib/schroot ] || {
mkdir -p /var/lib/schroot/mount /var/lib/schroot/session /var/lib/schroot/unpack /var/lib/schroot/union/overlay /var/lib/schroot/union/underlay
chmod 0700 /var/lib/schroot
}
}