Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Blame · internal/audit/verify_other.go

Line attribution on main · 18 line(s)

33cbbc9d
Keenan Nemetz
2d ago
1 //go:build !unix && !windows
215f8aeb
Keenan Nemetz
2d ago
2
3 package audit
4
5 import (
6 "fmt"
7 "io/fs"
8 "runtime"
9 )
10
11 // verifySecretFile refuses rather than assumes. The log's guarantee rests on a
12 // file mode and an owning uid; this platform has neither in the form those names
13 // mean, and the ACL-backed equivalent is not implemented yet. Starting without
14 // verifying would make "the audit log records who changed this" untrue, so the
15 // instance does not start.
16 func verifySecretFile(path string, st fs.FileInfo) error {
17 return fmt.Errorf("audit: cannot verify the owner of %s on %s: ownership and file modes have no equivalent here yet", path, runtime.GOOS)
18 }