hannesm / tlstunnel-lwt

TLS tunnel -- an alternative to stud / stunnel
BSD 2-Clause "Simplified" License
85 stars 7 forks source link

setgid/setuid/chroot? #7

Open avsm opened 9 years ago

avsm commented 9 years ago

See stud's command-line options:

  -r  --chroot=DIR           Sets chroot directory (Default: "")
  -u  --user=USER            Set uid/gid after binding the socket (Default: "")
  -g  --group=GROUP          Set gid after binding the socket (Default: "")
avsm commented 9 years ago

Maybe use release for this: https://github.com/andrenth/release

cfcs commented 9 years ago

Not sure what the point of this would be, but if you do need to sandbox it, it should probably be done in a thorough fashion:

Additional resources:

hannesm commented 9 years ago

patches welcome. I also stumbled upon https://github.com/haesbaert/hdhcp/commit/de2c28fcecac92d224d795643062cb2c1a773442 recently