Add apport hook to collect configuration information

Bug #591753 reported by Jean-Baptiste Lallement
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Fix Released
Wishlist
Kees Cook

Bug Description

Binary package hint: grub2

Add an apport hook to collect configuration information:
- /etc/default/grub
- /etc/grub.d/*
- test if they are valid shell scripts

Other ideas welcomed.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: grub2 1.98-1ubuntu6
ProcVersionSignature: Ubuntu 2.6.35-1.1-generic 2.6.35-rc1
Uname: Linux 2.6.35-1-generic i686
Architecture: i386
Date: Wed Jun 9 16:46:09 2010
EcryptfsInUse: Yes
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: grub2

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in grub2 (Ubuntu):
assignee: nobody → Jean-Baptiste Lallement (jibel)
status: New → In Progress
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Here is a first version of the hook for grub2.
It covers only ProblemType = 'Package'

Changed in grub2 (Ubuntu):
status: In Progress → Triaged
Revision history for this message
Colin Watson (cjwatson) wrote :

Could you please filter out passwords from /etc/default/grub? I'm not certain that this will never be run as root.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Here is a modified version of the apport hook which filters out password from /etc/default/grub.
If you want to collect any other information with that hook just tell me.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

This one is the right one :) Sorry.

Changed in grub2 (Ubuntu):
assignee: Jean-Baptiste Lallement (jibel) → nobody
tags: added: patch
Changed in grub2 (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Kees Cook (kees) wrote :

Thanks for this hook! I'm uploading it shortly.

Changed in grub2 (Ubuntu):
assignee: nobody → Kees Cook (kees)
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2 - 1.99~rc1-3ubuntu4

---------------
grub2 (1.99~rc1-3ubuntu4) natty; urgency=low

  * debian/grub-common.install, debian/apport/source_grub2.py: add
    apport hook for ProblemType = 'Package', thanks to Jean-Baptiste
    Lallement (LP: #591753).
 -- Kees Cook <email address hidden> Thu, 10 Mar 2011 14:52:27 -0800

Changed in grub2 (Ubuntu):
status: Fix Committed → Fix Released
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.