File: path_opt_nonlinux.go

package info (click to toggle)
golang-github-landlock-lsm-go-landlock 0.0~git20250303.1544bcc-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 276 kB
  • sloc: makefile: 9
file content (9 lines) | stat: -rw-r--r-- 176 bytes parent folder | download
1
2
3
4
5
6
7
8
9
//go:build !linux

package landlock

import "errors"

func (r FSRule) addToRuleset(rulesetFD int, c Config) error {
	return errors.New("Landlock is only supported on Linux")
}