Landlock-Sharp

Advanced topics

These pages cover the parts of Landlock-Sharp you won't reach for on day one — but which become important once you're putting it into production code.

Error handling

The exceptions the binding throws, the underlying errno values, and how to recognise common failure modes.

Testing strategies

How to write tests for sandboxed code, how to skip them on unsupported hosts, and the pattern used by the library's own test suite.

© 2026 Landlock-Sharp. All rights reserved.