Skip to content

fix(audit): only check permissions of flatpak apps, not runtimes#1071

Merged
RoyalOughtness merged 3 commits intosecureblue:livefrom
HastD:audit-no-runtimes
May 29, 2025
Merged

fix(audit): only check permissions of flatpak apps, not runtimes#1071
RoyalOughtness merged 3 commits intosecureblue:livefrom
HastD:audit-no-runtimes

Conversation

@HastD
Copy link
Copy Markdown
Collaborator

@HastD HastD commented May 25, 2025

Flatpak overrides on runtimes aren't meaningful and don't impact the actual permissions of flatpak apps using that runtime, so there's no point in checking them. The behavior of the flatpak sandbox is determined by the permissions on the app itself, which are already checked.

This reduces visual clutter in the audit script as there are no longer a bunch of lines for flatpak runtimes with no useful info, and also makes the script faster (since querying flatpak permissions is the performance bottleneck).

I also fixed a bug where the audit script would crash if piped to another program (because it'd try and fail to get the terminal width).

Flatpak overrides on runtimes don't appear to impact the actual
permissions of flatpak apps using that runtime, so there's no point in
checking them. The behavior of the flatpak sandbox is determined by the
permissions on the app itself, which are already checked.

Signed-off-by: Daniel Hast <[email protected]>
@HastD HastD requested a review from RoyalOughtness as a code owner May 25, 2025 14:16
For example this happens if the output is piped to another program.
@RoyalOughtness RoyalOughtness enabled auto-merge (squash) May 29, 2025 17:25
@RoyalOughtness RoyalOughtness merged commit 7e85913 into secureblue:live May 29, 2025
15 checks passed
@HastD HastD deleted the audit-no-runtimes branch May 29, 2025 18:13
RoyalOughtness pushed a commit to RoyalOughtness/secureblue-dev that referenced this pull request Aug 4, 2025
…ureblue#1071)

* fix(audit): only check permissions of flatpak apps, not runtimes

Flatpak overrides on runtimes don't appear to impact the actual
permissions of flatpak apps using that runtime, so there's no point in
checking them. The behavior of the flatpak sandbox is determined by the
permissions on the app itself, which are already checked.

Signed-off-by: Daniel Hast <[email protected]>

* fix: default to width 80 if can't get terminal width

For example this happens if the output is piped to another program.

---------

Signed-off-by: Daniel Hast <[email protected]>
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.

4 participants