pkexec fails in a non-graphical environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PolicyKit |
New
|
Unknown
|
|||
apport (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Brian Murray | ||
Groovy |
Fix Released
|
Medium
|
Brian Murray | ||
policykit-1 (Ubuntu) |
Won't Fix
|
Low
|
Unassigned | ||
Focal |
Won't Fix
|
Undecided
|
Unassigned | ||
Groovy |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
[Impact]
The plymouth apport source package hooks wants to gather log files as the root user and apport provides a policy kit policy for collecting that information. This works fine in a graphical environment but not in a non-graphical one.
[Test Case]
1) ssh into an Ubuntu Desktop install of Ubuntu 20.04 LTS or Ubuntu 20.10
2) sudo touch /var/log/
3) ubuntu@disco:~$ ubuntu-bug plymouth
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
..........==== AUTHENTICATING FOR com.ubuntu.
Authentication is required to collect system information for this problem report
Authenticating as: Ubuntu (ubuntu)
Password: ....
polkit-
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.
With the version of apport from -proposed you will not see the "AUTHENTICATION FAILED" error and the plymouth-debug.log file will be collected.
[Where Problems Could Occur]
It's possible that the spawned pkttyagent process does not get cleaned up properly and could be left running. When testing the SRU we should confirm it is not still running.
Related branches
- Brian Murray: Pending requested
- Ubuntu Core Development Team: Pending requested
-
Diff: 113 lines (+58/-2)2 files modifiedapport/hookutils.py (+52/-2)
apport/report.py (+6/-0)
Changed in policykit-1: | |
status: | Unknown → New |
description: | updated |
tags: | added: rls-ee-incoming |
Changed in policykit-1 (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
tags: | added: id-5cd1bf5c8a064c7e9fa14a52 |
Changed in apport (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: fr-279 |
tags: | added: rls-hh-incoming |
description: | updated |
tags: | removed: rls-hh-incoming |
Changed in policykit-1 (Ubuntu Focal): | |
status: | New → Won't Fix |
Changed in policykit-1 (Ubuntu Groovy): | |
status: | New → Won't Fix |
Changed in apport (Ubuntu Focal): | |
status: | New → In Progress |
Changed in apport (Ubuntu Groovy): | |
status: | New → In Progress |
Changed in apport (Ubuntu Focal): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in apport (Ubuntu Groovy): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in apport (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in apport (Ubuntu Groovy): | |
importance: | Undecided → Medium |
Marking as notfixing for release. This doesn't mean that it won't get worked on, and Andrea might have an idea what's going on here, but we won't block release on this bug.