Ubuntu

Add apport hook to collect configuration information

Reported by Jean-Baptiste Lallement on 2010-06-09
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
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

Jean-Baptiste Lallement (jibel) wrote :
Changed in grub2 (Ubuntu):
assignee: nobody → Jean-Baptiste Lallement (jibel)
status: New → In Progress
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
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.

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.

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
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
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  Edit
Everyone can see this information.

Other bug subscribers