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.

Code

527 commit(s) on main

Put job execution behind an interface Keenan Nemetz · 2h ago de3eec16
history blame raw 634 B
1//go:build !unix && !windows
2
3package audit
4
5import (
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.
16func 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}
19