touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #85461
[Bug 1466812] Re: aa-logprof crash
This log line is enough to reproduce the crash:
Jun 19 12:00:55 piorun kernel: [4475115.459952] audit: type=1400
audit(1434708055.676:19629): apparmor="ALLOWED" operation="file_perm"
profile="/usr/sbin/apache2" pid=3512 comm="apache2"
laddr=::ffff:193.0.236.159 lport=80 faddr=::ffff:192.168.103.80
fport=61985 family="inet6" sock_type="stream" protocol=6
which is parsed to (output of "print(e)"):
{'attr': None, 'pid': 3512, 'operation': 'file_perm', 'aamode': 'PERMITTING', 'active_hat': None, 'magic_token': 0, 'name': None, 'name2': None, 'info': None, 'profile': '/usr/sbin/apache2', 'request_mask': None, 'error_code': 0, 'task': 0, 'time': 1434708055, 'parent': 0, 'denied_mask': None, 'resource': None}
operation 'file_perm' means logparser.py will use the file-related code
- but for obvious reasons, that's impossible with request_mask,
denied_mask, name and name2 all being None.
--
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/1466812
Title:
aa-logprof crash
Status in AppArmor Linux application security framework:
New
Status in apparmor package in Ubuntu:
New
Bug description:
aa-logprof crash after adding generic profile of apache2.
Reading log entries from /var/log/syslog.
Updating AppArmor profiles in /etc/apparmor.d.
Traceback (most recent call last):
File "/usr/sbin/aa-logprof", line 54, in <module>
apparmor.do_logprof_pass(logmark)
File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2280, in do_logprof_pass
log = log_reader.read_log(logmark)
File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 373, in read_log
self.add_event_to_tree(event)
File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 278, in add_event_to_tree
rmask = rmask.replace('c', 'w')
AttributeError: 'set' object has no attribute 'replace'
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: apparmor-utils 2.8.95~2430-0ubuntu5.2
ProcVersionSignature: Ubuntu 3.16.0-30.40~14.04.1-generic 3.16.7-ckt3
Uname: Linux 3.16.0-30-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
Date: Fri Jun 19 12:37:54 2015
InstallationDate: Installed on 2015-04-23 (56 days ago)
InstallationMedia: Ubuntu-Server 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
ProcKernelCmdline: BOOT_IMAGE=/vmlinuz-3.16.0-30-generic root=/dev/mapper/system-root ro
SourcePackage: apparmor
Syslog:
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/apparmor/+bug/1466812/+subscriptions
References