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)
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' apport/ source_ apparmor. py 2009-11-11 20:21:21 +0000 apport/ source_ apparmor. py 2010-10-09 02:11:01 +0000
--- debian/
+++ debian/
@@ -27,7 +27,7 @@
def add_info(report): file(report, '/proc/ version_ signature' , 'ProcVersionSig nature' ) ine')
attach_
- attach_file(report, '/proc/cmdline', 'ProcCmdline')
+ attach_file(report, '/proc/cmdline', 'ProcKernelCmdl
sec_re = re.compile( 'audit\ (|apparmor| selinux| security' , re.IGNORECASE) 'KernLog' ] = recent_ kernlog( sec_re)
report[