debugedit fails to handle apparmor_parse due to extra slash

Bug #1561939 reported by Christian Svensson on 2016-03-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
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) on 2016-03-25
Changed in apparmor:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Tyler Hicks (tyhicks)
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) on 2016-03-25
Changed in apparmor:
milestone: none → 2.11
Christian Boltz (cboltz) on 2017-01-10
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