Skip to content

Background checks - #2367

Closed
matthiasclasen wants to merge 3 commits into
flatpak:masterfrom
matthiasclasen:background-checks
Closed

matthiasclasen wants to merge 3 commits into
flatpak:masterfrom
matthiasclasen:background-checks

Conversation

@matthiasclasen

@matthiasclasen matthiasclasen commented Dec 1, 2018 •

Copy link
Copy Markdown
Collaborator

Clamp down on polkit dialogs, and make system-helper things work on the console by adding a fallback authentication agent.

@matthiasclasen

Copy link
Copy Markdown
Collaborator Author

See #2370 for the missing system-helper flags

@matthiasclasen
matthiasclasen force-pushed the background-checks branch 3 times, most recently from f4c46e9 to 0ab75eb Compare December 2, 2018 01:05
@matthiasclasen matthiasclasen added this to the 1.2 milestone Dec 2, 2018
@matthiasclasen

This comment has been minimized.

@matthiasclasen
matthiasclasen force-pushed the background-checks branch 2 times, most recently from f10e419 to befc42d Compare December 3, 2018 19:32
@rh-atomic-bot

Copy link
Copy Markdown

☔ The latest upstream changes (presumably #2386) made this pull request unmergeable. Please resolve the merge conflicts.

Add a new 'no-interaction' flag to all system-helper methods
that have flags, and don't allow polkit user interaction if
it is set. This will let tools like GNOME Software do automatic
updates in the background without interrupting the user with dialogs.

For methods that don't have flags, we always allow user interaction.
Allow to mark a FlatpakDir as no-interaction, which will
get passed to the system helper to prevent it from presenting
polkit dialogs.

We make this a property on the object since the alternative
would require plumbing the flag through tons of API all over
the code.
Allow to mark a FlatpakInstallation as no-interaction, which
will get passed to the system helper to prevent it from presenting
polkit dialogs.

We make this a property on the object, since not all relevant
methods have flags that would let us pass this information.
@alexlarsson

Copy link
Copy Markdown
Member

Looks good to me.
@rh-atomic-bot r+

@rh-atomic-bot

Copy link
Copy Markdown

📌 Commit 5672e09 has been approved by alexlarsson

@rh-atomic-bot

Copy link
Copy Markdown

⌛ Testing commit 5672e09 with merge f3f7417...

rh-atomic-bot pushed a commit that referenced this pull request Dec 5, 2018
Allow to mark a FlatpakDir as no-interaction, which will
get passed to the system helper to prevent it from presenting
polkit dialogs.

We make this a property on the object since the alternative
would require plumbing the flag through tons of API all over
the code.

Closes: #2367
Approved by: alexlarsson
rh-atomic-bot pushed a commit that referenced this pull request Dec 5, 2018
Allow to mark a FlatpakInstallation as no-interaction, which
will get passed to the system helper to prevent it from presenting
polkit dialogs.

We make this a property on the object, since not all relevant
methods have flags that would let us pass this information.

Closes: #2367
Approved by: alexlarsson
@rh-atomic-bot

Copy link
Copy Markdown

☀️ Test successful - status-papr
Approved by: alexlarsson
Pushing f3f7417 to master...

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.

3 participants