aa_getcon returns garbage on error path

Bug #962521 reported by John Johansen on 2012-03-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
High
John Johansen
apparmor (Ubuntu)
High
John Johansen
Precise
High
John Johansen

Bug Description

when calling aa_getcon it returns a garbage filled buffer if it fails

Related branches

Changed in apparmor (Ubuntu):
status: New → In Progress
assignee: nobody → John Johansen (jjohansen)
importance: Undecided → High
Changed in apparmor:
importance: Undecided → High
Changed in apparmor (Ubuntu):
milestone: none → ubuntu-12.04-beta-2
Changed in apparmor:
assignee: nobody → John Johansen (jjohansen)
status: New → Confirmed
tags: added: rls-p-tracking
Changed in apparmor:
status: Confirmed → Fix Committed
Changed in apparmor (Ubuntu Precise):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apparmor - 2.7.102-0ubuntu1

---------------
apparmor (2.7.102-0ubuntu1) precise; urgency=low

  * New upstream release. Fixes the following issues in support of LXC
    AppArmor support for beta-2:
    - Fix the return size of aa_getprocattr (LP: #962521)
    - Fix mnt_flags passed for remount
    - Fix dfa minimization around the nonmatching state
    - Factor all the permissions dump code into a single perms method
  * debian/apparmor-utils.install:
    - AppArmor now installs apparmor.vim. Move it into place
    - install aa-exec
  * debian/apparmor-utils.manpages: install aa-exec man page
  * debian/patches/0003-add-aa-easyprof.patch: refresh for Makefile changes
  * debian/patches/0005-clean-common-from-vim.patch: clean up 'common'
    symlink
  * 0006-use-linux-capability-h.patch: Use linux/capability.h instead of
    sys/capability.h
 -- Jamie Strandboge <email address hidden> Thu, 22 Mar 2012 15:39:56 -0500

Changed in apparmor (Ubuntu Precise):
status: Fix Committed → Fix Released
Steve Beattie (sbeattie) wrote :

This was fixed in rev 1997 of lp:apparmor trunk and thus included as part of the apparmor 2.8.0 release; closing the apparmor upstream task.

Changed in apparmor:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers