mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-30 17:42:32 +01:00
23 lines
484 B
Go
23 lines
484 B
Go
//go:build !unix
|
|
|
|
package agenthelper
|
|
|
|
import (
|
|
"errors"
|
|
"os"
|
|
)
|
|
|
|
func openFileNoFollow(string) (*os.File, error) {
|
|
return nil, errors.New("privileged update activation is supported only on Unix")
|
|
}
|
|
|
|
func StrictRootOwnedFile(*os.File) error {
|
|
return errors.New("root ownership validation is supported only on Unix")
|
|
}
|
|
|
|
func FileOwnedByUID(uint32) func(*os.File) error {
|
|
return func(*os.File) error {
|
|
return errors.New("file ownership validation is supported only on Unix")
|
|
}
|
|
}
|