Skip to content

Conversation

WickedShell
Copy link

Leverages pledge and unveil, and leaves a public API for other systems to follow. The API was designed to match the OpenBSD side pretty closely as that's the initial target, if a BPF/capsicum implementation is brought forward it may be worth changing the API, and we should be okay with that. (Neither of those targets are on my current list of things to actively implement).

I've been using this locally for a bit on an OpenBSD system, can confirmed that a Linux build still works fine on a quick test. I've invoked transcoding, the only major feature I haven't touched that I'm tracking is jukebox, which I'm not really sure how it's supposed to be working yet. I also was unsure how to invoke the database upgrade path that I can ensure works.

This is the first time I've done anything with Go, so any criticisms are welcome.

@WickedShell WickedShell force-pushed the sandbox-openbsd branch 3 times, most recently from df763bd to 548bef8 Compare November 19, 2024 18:57
Leverages pledge and unveil, and leaves a public API for other
systems to follow. The API was designed to match the OpenBSD side
as that's the initial target, if a BPF/capsicum implementation is
brought forward it may be worth changing the API, and we should be
okay with that.
@WickedShell WickedShell force-pushed the sandbox-openbsd branch 4 times, most recently from 3c5259e to a0421d5 Compare June 14, 2025 18:21
@WickedShell WickedShell changed the title Initial implementation of a sandbox for OpenBSD Initial implementation of a sandbox for Linux & OpenBSD Jun 14, 2025
@WickedShell
Copy link
Author

I've now extended this to support landlock on Linux, and retested on OpenBSD.

@sentriz any opinions on this?

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

Successfully merging this pull request may close these issues.

2 participants