Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Merge branch 'claude/beacon-fix-a40l94-win-collector' into claude/beacon-fix-a40l94-win-enable

Claude320aedf1def5
diff --cc cli/beacon/internal/endpoint/writer/logaccess_windows.go
index da3974c1,30aa93e0..ba1e6eed
--- a/cli/beacon/internal/endpoint/writer/logaccess_windows.go
+++ b/cli/beacon/internal/endpoint/writer/logaccess_windows.go
@@@ -304,17 -307,15 +307,27 @@@ func ShareSystemLog(path string) error
if err := asymptoteobserve.SetRuntimeLogAccess(path, asymptoteobserve.LogAccessShared); err != nil {
return fmt.Errorf("remove the restricted mode marker: %w", err)
}
- return EnsureSystemLogWritable(path)
+ if err := EnsureSystemLogWritable(path); err != nil {
+ return err
+ }
+ if wasRestricted {
+ // EnsureSystemLogWritable resets only the log family; the restricted mode reset every file
+ // in the directory, and they go back too.
+ if err := sysacl.ResetLogDirToShared(filepath.Dir(path)); err != nil {
+ return fmt.Errorf("give the log directory back its shared grants: %w", err)
+ }
+ }
+ return nil
}
+
+// CheckRestrictedSystemLogACL lists every way the restricted log at path, its directory, its
+// archives or its lock let an account other than SYSTEM, Administrators and the readers group
+// reach it (sysacl.RestrictedProblems), for doctor. An ordinary user cannot open the directory, and
+// gets that error back.
+func CheckRestrictedSystemLogACL(path string) ([]string, error) {
+ readers, err := logReadersSID()
+ if err != nil {
+ return nil, err
+ }
+ return sysacl.InspectRestrictedLogDir(filepath.Dir(path), filepath.Base(path), readers)
+}