Activity log for bug #1294797

Date Who What changed Old value New value Message
2014-03-19 18:23:14 Jamie Strandboge bug added bug
2014-03-19 18:23:46 Jamie Strandboge bug task added apparmor
2014-03-19 18:33:59 Jamie Strandboge attachment added syslog https://bugs.launchpad.net/apparmor/+bug/1294797/+attachment/4032762/+files/syslog
2014-03-19 19:04:23 Jamie Strandboge attachment added apparmor.tar.gz https://bugs.launchpad.net/apparmor/+bug/1294797/+attachment/4032827/+files/apparmor.tar.gz
2014-03-23 07:37:37 Launchpad Janitor apparmor (Ubuntu): status New Confirmed
2014-05-03 09:52:45 Felix Eckhofer bug added subscriber Felix Eckhofer
2014-05-29 15:49:54 Christian Boltz apparmor: status New Fix Committed
2014-10-09 20:01:44 Jamie Strandboge apparmor (Ubuntu): status Confirmed Fix Released
2014-10-09 20:01:52 Jamie Strandboge nominated for series Ubuntu Trusty
2014-10-09 20:01:52 Jamie Strandboge bug task added apparmor (Ubuntu Trusty)
2014-10-09 20:02:00 Jamie Strandboge apparmor (Ubuntu Trusty): status New Triaged
2014-10-09 20:02:03 Jamie Strandboge apparmor (Ubuntu Trusty): importance Undecided Medium
2014-10-09 20:02:12 Jamie Strandboge apparmor (Ubuntu Trusty): assignee Marc Deslauriers (mdeslaur)
2014-10-10 21:50:03 Jamie Strandboge apparmor: milestone 2.9.0
2014-10-17 23:23:47 Steve Beattie apparmor: status Fix Committed Fix Released
2014-10-17 23:23:50 Steve Beattie apparmor (Ubuntu Trusty): status Triaged Fix Released
2014-10-24 19:35:23 Seth Arnold apparmor (Ubuntu Trusty): status Fix Released Confirmed
2015-02-22 06:15:08 Mathew Hodson tags trusty
2015-05-18 16:11:27 Steve Beattie description In a terminal, I run: $ sudo aa-genprof /usr/bin/empathy ... [(S)can system log for AppArmor events] / (F)inish At this point, I start empathy, then stop it. Now I go back to the terminal: <press S> Reading log entries from /var/log/syslog. Updating AppArmor profiles in /etc/apparmor.d. Traceback (most recent call last): File "/usr/sbin/aa-genprof", line 150, in <module> lp_ret = apparmor.do_logprof_pass(logmark, passno) File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2240, in do_logprof_pass read_profiles() File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2558, in read_profiles read_profile(profile_dir + '/' + file, True) File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2584, in read_profile profile_data = parse_profile_data(data, file, 0) File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2689, in parse_profile_data filelist[file]['profiles'][profile][hat] = True TypeError: 'bool' object does not support item assignment If I run it again, I get a different traceback: Traceback (most recent call last): File "/usr/sbin/aa-genprof", line 150, in <module> lp_ret = apparmor.do_logprof_pass(logmark, passno) File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2240, in do_logprof_pass read_profiles() File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2558, in read_profiles read_profile(profile_dir + '/' + file, True) File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2584, in read_profile profile_data = parse_profile_data(data, file, 0) File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 3031, in parse_profile_data raise AppArmorException(_('Syntax Error: Unknown line found in file: %s line: %s') % (file, lineno + 1)) apparmor.common.AppArmorException: 'Syntax Error: Unknown line found in file: /etc/apparmor.d/zz-unconfined line: 3' /etc/apparmor.d/zz-unconfined contains: # v2 compatible wildly permissive profile profile "zz_unconfined" { capability, network, /** rwlkm, /** pix, # TODO: when dbus hits: dbus, } [impact] This bug makes it difficult for trusty users to use the apparmor policy utilities. [steps to reproduce] See below [regression potential] This issue is being addressed by updating the python utilities to the version in apparmor 2.9.2 as tracked in bug 1449769. This represents are large change which would normally be risky; however, these changes are isolated to the python utils (so no changes to the policy parser/loader or enforcement), there are a large number of bugs that exist in the trusty version that make using the tools difficult, so it would be difficult to regress further, and the updated version includes many new unit tests to try to prevent from regressions from occurring. [additional info] The python utils testsuite is run as part of the test-apparmor.py test script in lp:qa-regression-testing. The test-apparmor.py also has additional basic usage tests to ensure that basic functionality is maintained. These tests are run as part of the process fro each kernel update. [original description] In a terminal, I run: $ sudo aa-genprof /usr/bin/empathy ... [(S)can system log for AppArmor events] / (F)inish At this point, I start empathy, then stop it. Now I go back to the terminal: <press S> Reading log entries from /var/log/syslog. Updating AppArmor profiles in /etc/apparmor.d. Traceback (most recent call last):   File "/usr/sbin/aa-genprof", line 150, in <module>     lp_ret = apparmor.do_logprof_pass(logmark, passno)   File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2240, in do_logprof_pass     read_profiles()   File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2558, in read_profiles     read_profile(profile_dir + '/' + file, True)   File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2584, in read_profile     profile_data = parse_profile_data(data, file, 0)   File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2689, in parse_profile_data     filelist[file]['profiles'][profile][hat] = True TypeError: 'bool' object does not support item assignment If I run it again, I get a different traceback: Traceback (most recent call last):   File "/usr/sbin/aa-genprof", line 150, in <module>     lp_ret = apparmor.do_logprof_pass(logmark, passno)   File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2240, in do_logprof_pass     read_profiles()   File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2558, in read_profiles     read_profile(profile_dir + '/' + file, True)   File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2584, in read_profile     profile_data = parse_profile_data(data, file, 0)   File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 3031, in parse_profile_data     raise AppArmorException(_('Syntax Error: Unknown line found in file: %s line: %s') % (file, lineno + 1)) apparmor.common.AppArmorException: 'Syntax Error: Unknown line found in file: /etc/apparmor.d/zz-unconfined line: 3' /etc/apparmor.d/zz-unconfined contains: # v2 compatible wildly permissive profile profile "zz_unconfined" {   capability,   network,   /** rwlkm,   /** pix,   # TODO: when dbus hits:   dbus, }
2015-05-22 04:58:48 Steve Beattie tags trusty trusty verification-done
2015-05-24 17:34:18 Launchpad Janitor branch linked lp:ubuntu/trusty-proposed/apparmor
2015-06-15 16:44:24 Launchpad Janitor apparmor (Ubuntu Trusty): status Confirmed Fix Released
2015-09-23 00:12:15 Mathew Hodson apparmor (Ubuntu): importance Undecided Medium