← Back to team overview

touch-packages team mailing list archive

[Bug 1540562] Re: aa-genprof crashes in logparser NoneType has no "replace"

 

Relevant log line (profile name changed to make reproducing easier):

Feb  1 14:34:25 zippy kernel: [55870.767873] audit: type=1400
audit(1454355265.041:133046): apparmor="ALLOWED"
operation="file_receive" profile="/usr/sbin/smbd" pid=28265
comm="RosettaStoneDae" family="inet" sock_type="stream" protocol=6

** Also affects: apparmor
   Importance: Undecided
       Status: New

** Tags added: aa-tools

-- 
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/1540562

Title:
  aa-genprof crashes in logparser NoneType has no "replace"

Status in AppArmor:
  New
Status in apparmor package in Ubuntu:
  New

Bug description:
  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 151, in <module>
      lp_ret = apparmor.do_logprof_pass(logmark, passno)
    File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2176, in do_logprof_pass
      log = log_reader.read_log(logmark)
    File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 358, in read_log
      self.add_event_to_tree(event)
    File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 263, in add_event_to_tree
      rmask = rmask.replace('c', 'a')
  AttributeError: 'NoneType' object has no attribute 'replace'

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: apparmor 2.10-0ubuntu11
  ProcVersionSignature: Ubuntu 4.3.0-7.18-generic 4.3.3
  Uname: Linux 4.3.0-7-generic x86_64
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
  ApportVersion: 2.19.4-0ubuntu1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Mon Feb  1 14:35:38 2016
  InstallationDate: Installed on 2014-05-07 (635 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
  JournalErrors: -- No entries --
  ProcKernelCmdline: BOOT_IMAGE=/root@/boot/vmlinuz-4.3.0-7-generic.efi.signed root=ZFS=gelb/root ro boot=zfs rpool=gelb bootfs=gelb/root
  SourcePackage: apparmor
  UpgradeStatus: No upgrade log present (probably fresh install)
  modified.conffile..etc.apparmor.d.abstractions.dbus.accessibility.strict: [modified]
  mtime.conffile..etc.apparmor.d.abstractions.dbus.accessibility.strict: 2016-01-11T17:19:10.453376

To manage notifications about this bug go to:
https://bugs.launchpad.net/apparmor/+bug/1540562/+subscriptions


References