https://bugzilla.novell.com/show_bug.cgi?id=254319 Summary: genprof removes variable definitions in profiles Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: AppArmor AssignedTo: seth.arnold@novell.com ReportedBy: sbeattie@novell.com QAContact: dreynolds@novell.com genprof removes any variable definitions that occur in the main profile itself (not in included abstractions). To reproduce: # echo -e '#!/bin/sh\ncat /etc/resolv.conf' > /tmp/foo.sh # chmod +x /tmp/foo.sh # echo -e '@{TESTFILE}=/etc/resolv.conf\n\n/tmp/foo.sh {\n @{TESTFILE} r,\n /bin/cat rmix,\n}' > /etc/apparmor.d/tmp.foo.sh # rcapparmor restart # genprof /tmp/foo.sh In another shell, run /tmp/foo.sh. Then jump back to the shell where you're running genprof and answer the profiling questions it asks. Finish the genprof session. Now if you do: rcapparmor restart it will be unable to reload the profile for /tmp/foo.sh because the variable definition for @{TESTFILE} will no longer exist. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.