Debian Codegraph @

landlock/path_opt_nonlinux.go

raw
1 //go:build !linux
2
3 package landlock
4
5 import "errors"
6
7 func (r FSRule) addToRuleset(rulesetFD int, c Config) error {
8 return errors.New("Landlock is only supported on Linux")
9 }