Skip to content

fix(status): handle permission-denied files with sudo fallback - #31

Merged
subbeh merged 1 commit into
mainfrom
fix/status-permission-denied
Jul 27, 2026
Merged

fix(status): handle permission-denied files with sudo fallback#31
subbeh merged 1 commit into
mainfrom
fix/status-permission-denied

Conversation

@subbeh

@subbeh subbeh commented Jul 26, 2026

Copy link
Copy Markdown
Owner

When checking files in restricted directories (e.g. polkit rules),
status/diff/check now:

  • Try non-interactive sudo (sudo -n) if credentials are cached
  • With --sudo flag, prompt for password to check all files
  • Without sudo access, skip files and show a warning with count

Adds sudoLstat and sudoHashFile helpers for reading file metadata
and content via sudo.

When checking files in restricted directories (e.g. polkit rules),
status/diff/check now:

- Try non-interactive sudo (sudo -n) if credentials are cached
- With --sudo flag, prompt for password to check all files
- Without sudo access, skip files and show a warning with count

Adds sudoLstat and sudoHashFile helpers for reading file metadata
and content via sudo.
@subbeh
subbeh merged commit abf78da into main Jul 27, 2026
3 checks passed
@subbeh
subbeh deleted the fix/status-permission-denied branch July 27, 2026 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant