provide ability for apport to detect modified conffiles reliably when not running as root
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
Apport currently provides a very useful attach_conffiles() function that "Attaches information about any modified or deleted conffiles" for a specified package.
However, if this function is called by an apport hook as a non-root user and if the package being queried contains any conffiles which are not readable by a non-root user, an IOError exception is generated.
This can be dealt with by catching the exception in the apport hook, but it has the side-effect of stopping an apport hook detecting reliably whether any of a packages conffiles have been modified whereas it should be possible to atleast check those conffiles the user does have read permission for.
Ideally, get_modified_
Changed in apport: | |
assignee: | nobody → Martin Pitt (pitti) |
importance: | Undecided → Low |
status: | New → Triaged |
I guess an alternative solution to this would be to catch the IOError and have apport invoke pkexec to read the files?