debugedit fails to handle apparmor_parse due to extra slash

Bug #1561939 reported by Christian Svensson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
Fix Released
Low
Tyler Hicks

Bug Description

Trying to use debugedit on apparmor_parse results in:

# debugedit -i apparmor_parser -d /tmp -b $PWD
debugedit: canonicalization unexpectedly shrank by one character

This is a known problem (https://bugzilla.redhat.com/show_bug.cgi?id=304121) and is quite silly.
The fix is to remove this extra slash:

--- a/parser/Makefile 2016-03-25 11:11:45.807843796 +0100
+++ b/parser/Makefile 2016-03-25 11:11:51.639843639 +0100
@@ -95,7 +95,7 @@
   INCLUDE_APPARMOR =
   APPARMOR_H =
 else
- LIBAPPARMOR_SRC = ../libraries/libapparmor/
+ LIBAPPARMOR_SRC = ../libraries/libapparmor
   LOCAL_LIBAPPARMOR_INCLUDE = $(LIBAPPARMOR_SRC)/include
   LOCAL_LIBAPPARMOR_LDPATH = $(LIBAPPARMOR_SRC)/src/.libs

After patch:
# debugedit -i apparmor_parser -d /tmp -b $PWD
8f5ef8a72433877bfbc772d82d4808bd24e0ec9a

Related branches

Tyler Hicks (tyhicks)
Changed in apparmor:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Tyler Hicks (tyhicks)
Revision history for this message
Tyler Hicks (tyhicks) wrote :

Thanks Christian! I've committed a fix for this:

  https://bazaar.launchpad.net/~apparmor-dev/apparmor/master/revision/3426

Steve Beattie (sbeattie)
Changed in apparmor:
milestone: none → 2.11
Christian Boltz (cboltz)
Changed in apparmor:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.