//go:build !linux // +build !linux // Package platform provides platform-specific utilities for the audit system package platform import "fmt" // MakeImmutable sets the immutable flag on a file. // Not supported on non-Linux platforms. func MakeImmutable(path string) error { return fmt.Errorf("immutable flag not supported on this platform (requires Linux with chattr)") } // MakeAppendOnly sets the append-only flag. // Not supported on non-Linux platforms. func MakeAppendOnly(path string) error { return fmt.Errorf("append-only flag not supported on this platform (requires Linux with chattr)") } // ClearImmutable removes the immutable flag from a file. // Not supported on non-Linux platforms. func ClearImmutable(path string) error { return fmt.Errorf("immutable flag not supported on this platform (requires Linux with chattr)") } // IsSupported returns false on non-Linux platforms func IsSupported() bool { return false }