← Back to team overview

touch-packages team mailing list archive

[Bug 1296218] Re: aa-complain crashed with apparmor.common.AppArmorException in get_profile_flags(): '/etc/apparmor.d/usr.bin.chromium-browser contains no profile'

 

Apparmor 2.9.0 has been released; closing.

** Changed in: apparmor
       Status: Fix Committed => Fix Released

** Changed in: apparmor (Ubuntu Trusty)
       Status: Triaged => Fix Released

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

Title:
  aa-complain crashed with apparmor.common.AppArmorException in
  get_profile_flags(): '/etc/apparmor.d/usr.bin.chromium-browser
  contains no profile'

Status in AppArmor Linux application security framework:
  Fix Released
Status in “apparmor” package in Ubuntu:
  Fix Released
Status in “apparmor” source package in Trusty:
  Fix Released
Status in “apparmor” source package in Utopic:
  Fix Released

Bug description:
  Here the profile exists
  -------------------------------
  $ sudo aa-autodep /usr/bin/chromium-browser
  Profile for /usr/bin/chromium-browser already exists - skipping.
  ----------------------------
  Here it doesn't exist
  ----------------------------
  $ sudo aa-genprof /usr/bin/chromium-browser
  Traceback (most recent call last):
    File "/usr/sbin/aa-genprof", line 102, in <module>
      apparmor.helpers[program] = apparmor.get_profile_flags(profile_filename, program)
    File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 600, in get_profile_flags
      raise AppArmorException(_('%s contains no profile') % filename)
  apparmor.common.AppArmorException: '/etc/apparmor.d/usr.bin.chromium-browser contains no profile'
  -------------------------------
  and finally this crashes again
  -------------------------------
  $ sudo aa-complain /usr/bin/chromium-browser
  Setting /usr/bin/chromium-browser to complain mode.
  Traceback (most recent call last):
    File "/usr/sbin/aa-complain", line 30, in <module>
      tool.cmd_complain()
    File "/usr/lib/python3/dist-packages/apparmor/tools.py", line 178, in cmd_complain
      apparmor.set_complain(profile, program)
    File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 264, in set_complain
      change_profile_flags(filename, program, 'complain', True)
    File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 603, in change_profile_flags
      old_flags = get_profile_flags(filename, program)
    File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 600, in get_profile_flags
      raise AppArmorException(_('%s contains no profile') % filename)
  apparmor.common.AppArmorException: '/etc/apparmor.d/usr.bin.chromium-browser contains no profile'

  ProblemType: Crash
  DistroRelease: Ubuntu 14.04
  Package: apparmor-utils 2.8.95~2430-0ubuntu2
  ProcVersionSignature: Ubuntu 3.13.0-18.38-lowlatency 3.13.6
  Uname: Linux 3.13.0-18-lowlatency x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.13.3-0ubuntu1
  Architecture: amd64
  Date: Sun Mar 23 08:47:30 2014
  ExecutablePath: /usr/sbin/aa-complain
  InstallationDate: Installed on 2014-03-08 (14 days ago)
  InstallationMedia: Ubuntu-Studio 14.04 "Trusty Tahr" - Alpha amd64 (20140224)
  InterpreterPath: /usr/bin/python3.4
  ProcCmdline: /usr/bin/python3 /usr/sbin/aa-complain /usr/bin/chromium-browser
  ProcKernelCmdline: BOOT_IMAGE=/boot/vmlinuz-3.13.0-18-lowlatency root=UUID=4333a8e9-30cd-431d-8682-8211c549f168 ro quiet splash vt.handoff=7
  PythonArgs: ['/usr/sbin/aa-complain', '/usr/bin/chromium-browser']
  SourcePackage: apparmor
  Title: aa-complain crashed with apparmor.common.AppArmorException in get_profile_flags(): '/etc/apparmor.d/usr.bin.chromium-browser contains no profile'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

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