ARTEX/server/isolation_other.go
2026-12-01 15:59:18 +00:00

25 lines
682 B
Go

//go:build !unix
package server
import "os"
// LockDownKeyDir creates keyDir if missing; POSIX chmod 0700 enforcement is Unix-only.
func LockDownKeyDir(keyDir string) error {
if keyDir == "" {
return nil
}
return os.MkdirAll(keyDir, 0o700)
}
// LockDownCAKey has nothing to tighten off unix: the self-test fails there, and
// the CA key is restricted by traffic.Open as before.
func LockDownCAKey(dataDir string) error {
return nil
}
// IsolationSelfTest fails: agent processes cannot run as another identity on this
// platform, so they are never isolated from the server.
func IsolationSelfTest(p ExecPrivilege, t IsolationTargets) error {
return errExecUnsupported
}