Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2177711

Summary: Backport changes for passing interactive flag to Polkit calls
Product: Red Hat Enterprise Linux 8 Reporter: Milan Crha <mcrha>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: CLOSED ERRATA QA Contact: Bohdan Milar <bmilar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.8CC: jkoten, klember, mboisver, tpelka
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: PackageKit-1.1.12-7.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-14 15:26:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1857654    

Description Milan Crha 2023-03-13 13:04:50 UTC
In order to be able to fix bug #1857654 at least the last two patches from the upstream [1] are needed.

[1] https://github.com/PackageKit/PackageKit/pull/468

Comment 1 Richard Hughes 2023-04-24 12:36:38 UTC
Milan, does the test build here work for you? https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=52199959 -- that's with 86f4a2fbf5fcb1230c68a57c4a7bc066aa3f7ef4 and 9b7e083cf849c4ed4d66fe32250f1615ab577d94 backported.

Comment 2 Milan Crha 2023-04-24 16:13:29 UTC
(In reply to Richard Hughes from comment #1)
> Milan, does the test build here work for you?
> https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=52199959 --
> that's with 86f4a2fbf5fcb1230c68a57c4a7bc066aa3f7ef4 and
> 9b7e083cf849c4ed4d66fe32250f1615ab577d94 backported.

Yes, it works as expected, no password prompt is shown. The only tricky part (for me) was to restart the packagekitd process after installing the packages (I keep forgetting of such obvious things).

Comment 7 Bohdan Milar 2023-06-12 19:48:48 UTC
I used the following reproducer (thanks to Milan Crha):

1. Login to gnome
2. Lpen gnome-terminal
3. Install SW for test: sudo dnf install tigervnc tigervnc-server
4. Create vncuser: sudo useradd vncuser
5. Set the passwd for vncuser: sudo -u vncuser vncpasswd
6. Configure vncuser for port 1: echo ":1=vncuser" | sudo tee -a /etc/tigervnc/vncserver.users
7. Start VNC server on port 1: sudo systemctl start vncserver@:1
8. Wait a moment and run: vncviewer localhost:1
9. Type the password for vncuser

Results with PackageKit-1.1.12-6.el8.x86_64 and gnome-software-3.36.1-11.el8.x86_64:

vncviewer shows gnome desktop with the "Authentication required - Authentication is required to refresh the system repositories" dialog opened.

Results with PackageKit-1.1.12-7.el8.x86_64 and gnome-software-3.36.1-12.el8.x86_64:

vncviewer shows gnome desktop without an "Authentication required" dialog.

NOTE: I had to restart whole OS after upgrade/downgrade the 2 packages for the change to take effect.

Conclusion: bugfix verified.

Comment 8 Milan Crha 2023-06-13 04:43:58 UTC
(In reply to Bohdan Milar from comment #7)
> NOTE: I had to restart whole OS after upgrade/downgrade the 2 packages for
> the change to take effect.

I believe it's because the packagekitd process, a system service, was not restarted after package update/downgrade. The gnome-software process should start with the (VNC) session start and last running as long as the session is running. The gnome-software also runs as a background process, only in the user session, not system session.

Comment 9 Bohdan Milar 2023-06-13 08:17:52 UTC
(In reply to Milan Crha from comment #8)
> (In reply to Bohdan Milar from comment #7)
> > NOTE: I had to restart whole OS after upgrade/downgrade the 2 packages for
> > the change to take effect.
> 
> I believe it's because the packagekitd process, a system service, was not
> restarted after package update/downgrade.

OK, that sounds logical.
I haven't tried to restart packagekitd manually.
But shouldn't that be done automatically after package update/downgrade?


> The gnome-software process should
> start with the (VNC) session start and last running as long as the session
> is running. The gnome-software also runs as a background process, only in
> the user session, not system session.

Thanks for explanation.

Comment 10 Milan Crha 2023-06-13 08:41:26 UTC
(In reply to Bohdan Milar from comment #9)
> But shouldn't that be done automatically after package update/downgrade?

No idea, I'm sorry. I can see pros and cons for both approaches (automatically restarting the background processes or not). One problem can be when the package is installed when the process is installing other updates or when it does any such thing.

Comment 12 errata-xmlrpc 2023-11-14 15:26:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (PackageKit bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6932