Comment 3 for bug 657091

Steve Beattie (sbeattie) wrote :

The apparmor apport hook does not invoke the attach_hardware hook, but also attaches /proc/cmdline directly in the same way, with the same clobbering effect. It needs a similar fix like so:

=== modified file 'debian/apport/source_apparmor.py'
--- debian/apport/source_apparmor.py 2009-11-11 20:21:21 +0000
+++ debian/apport/source_apparmor.py 2010-10-09 02:11:01 +0000
@@ -27,7 +27,7 @@

 def add_info(report):
     attach_file(report, '/proc/version_signature', 'ProcVersionSignature')
- attach_file(report, '/proc/cmdline', 'ProcCmdline')
+ attach_file(report, '/proc/cmdline', 'ProcKernelCmdline')

     sec_re = re.compile('audit\(|apparmor|selinux|security', re.IGNORECASE)
     report['KernLog'] = recent_kernlog(sec_re)