Bug 1683824 - Polkit dialog for update check is shown after login on standard user account on Silverblue
Summary: Polkit dialog for update check is shown after login on standard user account ...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-software
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-27 22:06 UTC by Daniel Rusek
Modified: 2019-09-30 17:54 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-30 17:54:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Polkit dialog shown after login on Standard user account (50.84 KB, image/png)
2019-02-27 22:06 UTC, Daniel Rusek
no flags Details

Description Daniel Rusek 2019-02-27 22:06:07 UTC
Created attachment 1539284 [details]
Polkit dialog shown after login on Standard user account

Description of problem:
When using standard user account (without sudo permissions), "Authentication is required to check available updates" polkit dialog is shown after login. I don't think such dialog should be displayed and it doesn't work anyway because the standard user account doesn't have the required permissions. See the attached screenshot.

Version-Release number of selected component (if applicable):
gnome-software-3.31.90-1.fc31.x86_64

How reproducible:
Every time.

Steps to Reproduce:
1. Use latest Fedora Rawhide (Silverblue) system.
2. Create a new "Standard" user account using GNOME Control Center.
3. Logout and login to the newly created account.

Actual results:
"Authentication is required to check available updates" polkit dialog is shown every time after login.

Expected results:
No polkit dialog is shown after login.

Additional info:
I have also noticed that sometimes a new updates available GS notification is displayed when using the standard user account, but no updates are shown when the GS window is opened. It is a different bug, but I am mentioning it here because I feel it may be somehow related.

Comment 1 Daniel Rusek 2019-04-02 09:54:09 UTC
Still the same issue on Fedora Silverblue 30 with gnome-software-3.32.0-4.fc30.x86_64 when on account without sudo permissions.

Comment 3 Daniel Rusek 2019-04-19 13:48:25 UTC
I just tried it on a regular Fedora 30 Beta and was not able to reproduce the issue. So this seems to be a Silverblue (rpm-ostree) related issue.

Comment 4 Daniel Rusek 2019-05-03 10:52:32 UTC
Still the same issue on both Fedora Silverblue 30 (with gnome-software-3.32.1-2.fc30.x86_64) and Fedora Silverblue Rawhide (with gnome-software-3.32.1-3.fc31.x86_64).

Comment 5 Ben Cotton 2019-08-13 17:04:13 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 6 Ben Cotton 2019-08-13 19:23:50 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 7 Daniel Rusek 2019-09-12 17:16:24 UTC
Fully updated Fedora Silverblue Rawhide with gnome-software-3.34.0-1.fc32.x86_64, still the same issue.

Comment 8 Daniel Rusek 2019-09-25 10:14:36 UTC
The polkit dialog seems to be from rpm-ostree.

I have reported the issue here: https://github.com/coreos/rpm-ostree/issues/1909

Comment 9 Jonathan Lebon 2019-09-25 20:11:36 UTC
Hmm, I think this is still a GNOME Software issue though. E.g. ISTM it should query polkit to see if the user is authorized without challenge before trying to do background checks for updates, right?

Comment 10 Daniel Rusek 2019-09-30 17:54:24 UTC
I have moved this issue upstream: https://gitlab.gnome.org/GNOME/gnome-software/issues/818


Note You need to log in before you can comment on or make changes to this bug.