bastion 0.58.0
ci / personal-data (push) Successful in 4s
ci / test (push) Successful in 4m5s
ci / fuzz (push) Successful in 4m10s

This commit is contained in:
Privatae
2026-10-29 15:54:51 +00:00
parent 081763a675
commit 01889e2a48
37 changed files with 5629 additions and 90 deletions
+8
View File
@@ -142,6 +142,14 @@ func cmdOpsDrop(host, prefix string) error {
}
dir := cfg.dcnDir()
prefix = strings.TrimSpace(prefix)
if prefix == "--all" {
dropped, err := opsDropWhere(dir, "dropped at this machine's console", func(string, *opGrantRec) bool { return true })
if err != nil {
return err
}
fmt.Printf("%d op grant(s) dropped — the host cannot run under any of them again\n", len(dropped))
return nil
}
var hits []string
for nonce, rec := range opsLoad(dir).Grants {
if rec.Dropped == "" && strings.HasPrefix(nonce, prefix) {