Go Landlock

💾 Git | 📚 Docs

The Go Landlock library is designed to be easy to use. A typical use of the library might look like this:

err := landlock.V5.BestEffort().RestrictPaths(
    landlock.RODirs("/usr", "/bin"),
    landlock.RWDirs("/tmp"),
)

After this call:

See the documentation for more API details and the GoLandlockTalk for a longer explanation.