[apparmor] [utils][patch] Fix incorrect options being displayed for capabilites in aa.py
Kshitij Gupta
kgupta8592 at gmail.com
Sun Sep 7 21:59:38 UTC 2014
Hello,
Due to options being passed incorrectly to the UI functions the user
(in this case @cboltz) was being presented with the following (hard)
choice:
Profil: /usr/lib/cups/backend/boomaga
Capability: sys_ptrace
Schweregrad: unknown
[1 - ['#include <abstractions/ubuntu-konsole>', 'capability
sys_ptrace']]
[(A)llow] / (D)eny / (I)gnore / Audi(t) / Abo(r)t / (F)inish
The following patch:
- ensures the options are passed correctly in the expected form.
=== modified file 'utils/apparmor/aa.py'
--- utils/apparmor/aa.py 2014-09-04 01:18:33 +0000
+++ utils/apparmor/aa.py 2014-09-07 21:47:38 +0000
@@ -1556,7 +1556,7 @@
if options:
options.append('capability %s' % capability)
- q['options'] = [options]
+ q['options'] = options
q['selected'] = default_option - 1
q['headers'] = [_('Profile'), combine_name(profile, hat)]
Regards,
Kshitij Gupta
More information about the AppArmor
mailing list