mirror of
https://github.com/langgenius/dify.git
synced 2026-07-25 21:48:30 +08:00
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
14 lines
339 B
Go
14 lines
339 B
Go
//go:build !linux
|
|
|
|
package landlock
|
|
|
|
import "errors"
|
|
|
|
// ErrNotSupported is returned when the kernel does not support Landlock.
|
|
var ErrNotSupported = errors.New("landlock: not supported by kernel")
|
|
|
|
// Restrict is a no-op on non-Linux platforms; always returns ErrNotSupported.
|
|
func Restrict(cfg *Config) error {
|
|
return ErrNotSupported
|
|
}
|