Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative: use unveil rather than chroot+setuid #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

begriffs
Copy link

The code you have already is more portable than what's in this pull request, but I wanted to share this for anyone looking for an alternative to running the program as root. On OpenBSD I let OpenSMTPD spawn minimalist as the _smtpd user. Then I use unveil rather than chroot.

@madroach
Copy link
Owner

Thanks. I'm on OpenBSD, too. But I don't use minimalist any more. As you notice, unveil() is less portable, so not really suitable as a master branch.

@begriffs
Copy link
Author

begriffs commented Oct 24, 2023 via email

@madroach
Copy link
Owner

I don't manage any mailinglists anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants