auditFilePermissions skips POSIX permission-bit auditing on Windows because Go synthesizes mode bits from file attributes rather than NTFS ACLs.
(effectivePath string, allowReadableByOthers bool, label string)
| 19 | // auditFilePermissions skips POSIX permission-bit auditing on Windows because |
| 20 | // Go synthesizes mode bits from file attributes rather than NTFS ACLs. |
| 21 | func auditFilePermissions(effectivePath string, allowReadableByOthers bool, label string) error { |
| 22 | if _, err := vfs.Stat(effectivePath); err != nil { |
| 23 | return fmt.Errorf("%s: cannot stat %q: %w", label, effectivePath, err) |
| 24 | } |
| 25 | return nil |
| 26 | } |