attach_conffiles does not work for unreadable files

Bug #962381 reported by Marc Deslauriers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Apport hook crashes because of lack of appropriate privileges:

mdeslaur@sec-precise-amd64:~$ ubuntu-bug ca-certificates-java
ERROR: hook /usr/share/apport/general-hooks/ubuntu.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 718, in add_hooks_info
    symb['add_info'](self, ui)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 73, in add_info
    attach_conffiles(report, package, ui=ui)
  File "/usr/lib/python2.7/dist-packages/apport/hookutils.py", line 107, in attach_conffiles
    modified = packaging.get_modified_conffiles(package)
  File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py", line 242, in get_modified_conffiles
    with open(path, 'rb') as fd:
IOError: [Errno 13] Permission denied: u'/etc/default/cacerts'

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ca-certificates-java 20110912ubuntu4
ProcVersionSignature: User Name 3.2.0-20.32-generic 3.2.12
Uname: Linux 3.2.0-20-generic x86_64
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
Date: Thu Mar 22 13:40:51 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120220)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ca-certificates-java
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :
affects: ca-certificates-java (Ubuntu) → apport (Ubuntu)
Revision history for this message
Brian Murray (brian-murray) wrote :

It looks like apport no longer crashes (on saucy) but the conffile is not included.

== modified.conffile..etc.default.cacerts =================================
[inaccessible: [Errno 13] Permission denied: '/etc/default/cacerts']

summary: - apport hook crashes because of lack of appropriate privileges
+ attach_conffiles does not work for unreadable files
Changed in apport (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in apport (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apport (Ubuntu) because there has been no activity for 60 days.]

Changed in apport (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.