emikulic / darkhttpd

When you need a web server in a hurry.
https://unix4lyfe.org/darkhttpd/
ISC License
1.05k stars 87 forks source link

Support chroot as non-root on FreeBSD 14+ #41

Closed hhartzer closed 8 months ago

hhartzer commented 8 months ago

Closes: #38

emikulic commented 8 months ago

Off-topic but I found https://reviews.freebsd.org/D30130 useful to explain why/how FreeBSD handles this.

Thanks for the patch, and thanks for improving FreeBSD support!

hhartzer commented 8 months ago

Thanks for merging! That's a neat find.

It does look like the NO_NEW_PRIVS concept may have come about earlier, and may be in Linux as well. I hope other BSDs and Linux adopt this as well.