Absurd permissions on /etc/depmod.d, /etc/modprobe.d crash apport-retrace

Bug #1082598 reported by Anders Kaseorg
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kmod (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

$ dpkg -c kmod_9-2ubuntu3_amd64.deb | grep '\.d/$'
drwxr-xr-x root/root 0 2012-10-30 17:26 ./lib/modprobe.d/
drw-r-xr-x root/root 0 2012-10-30 17:26 ./etc/depmod.d/
drwxr-xr-x root/root 0 2012-10-30 17:26 ./etc/init.d/
drw-r-xr-x root/root 0 2012-10-30 17:26 ./etc/modprobe.d/

This causes apport-retrace to die during cleanup as follows:

 Traceback (most recent call last):
   File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
     func(*targs, **kargs)
   File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
     rmtree(fullname, ignore_errors, onerror)
   File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
     rmtree(fullname, ignore_errors, onerror)
   File "/usr/lib/python2.7/shutil.py", line 252, in rmtree
     onerror(os.remove, fullname, sys.exc_info())
   File "/usr/lib/python2.7/shutil.py", line 250, in rmtree
     os.remove(fullname)
 OSError: [Errno 13] Permission denied: '/tmp/tmpPU9nTq/etc/depmod.d/ubuntu.conf'

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: kmod 9-2ubuntu3
ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
Uname: Linux 3.5.0-18-generic x86_64
NonfreeKernelModules: openafs
ApportVersion: 2.6.2-0ubuntu5
Architecture: amd64
Date: Sat Nov 24 02:54:21 2012
EcryptfsInUse: Yes
InstallationDate: Installed on 2010-12-05 (719 days ago)
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101202)
MarkForUpload: True
SourcePackage: kmod
UpgradeStatus: Upgraded to raring on 2012-11-15 (8 days ago)

Related branches

Revision history for this message
Anders Kaseorg (andersk) wrote :
Revision history for this message
dino99 (9d9) wrote :

i suppose it also explain that other issue:
https://bugs.launchpad.net/ubuntu/+source/kmod/+bug/1073062

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kmod (Ubuntu):
status: New → Confirmed
Revision history for this message
Anders Kaseorg (andersk) wrote :

dino99, no, it doesn’t. Bug 1073062 is unrelated.

Revision history for this message
Martin Pitt (pitti) wrote :

I just painfully saw that on the Launchpad retracers, which leave behind Jigabytes of cruft because of that. Will sponsor.

Changed in kmod (Ubuntu):
status: Confirmed → In Progress
Martin Pitt (pitti)
Changed in kmod (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kmod - 9-2ubuntu5

---------------
kmod (9-2ubuntu5) raring; urgency=low

  * Fix permissions on /etc/depmod.d, /etc/modprobe.d. (LP: #1082598)
 -- Anders Kaseorg <email address hidden> Tue, 22 Jan 2013 15:06:45 +0100

Changed in kmod (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Anders Kaseorg (andersk) wrote :

Thanks, Martin. You may also be interested in poking someone about bug 1082600; apport-retrace shouldn’t die so horribly on incorrect permissions.

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.