touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #25840
[Bug 1294825] Re: Python utils lack support for mount rules
** Changed in: apparmor
Milestone: None => 2.9.0
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1294825
Title:
Python utils lack support for mount rules
Status in AppArmor Linux application security framework:
Fix Committed
Status in “apparmor” package in Ubuntu:
Fix Released
Bug description:
The new aa.py module does not handle mount rules and emits a
traceback.
$ mkdir /tmp/profs
$ printf "profile romount {\n mount options=ro,\n}" > /tmp/profs/mount
$ sudo aa-enforce -d /tmp/profs /tmp/profs/mount
Traceback (most recent call last):
File "./aa-enforce", line 30, in <module>
tool.cmd_enforce()
File "/var/scm/apparmor.git/utils/apparmor/tools.py", line 153, in cmd_enforce
apparmor.read_profiles()
File "/var/scm/apparmor.git/utils/apparmor/aa.py", line 2558, in read_profiles
read_profile(profile_dir + '/' + file, True)
File "/var/scm/apparmor.git/utils/apparmor/aa.py", line 2584, in read_profile
profile_data = parse_profile_data(data, file, 0)
File "/var/scm/apparmor.git/utils/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: /tmp/profs/mount line: 2'
To manage notifications about this bug go to:
https://bugs.launchpad.net/apparmor/+bug/1294825/+subscriptions