Chrooting.
This commit is contained in:
parent
a78001bf22
commit
a9a82868ca
@ -47,6 +47,12 @@ func main() {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
if config.Chroot != "" {
|
||||
if err := syscall.Chroot(config.Chroot); err != nil {
|
||||
log.Fatalln("failed to chroot:", err)
|
||||
}
|
||||
}
|
||||
|
||||
if err := substituteUser(config.User); err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user