Bug 535107

Summary: creating apparmor profiles does not work - useless error message
Product: [openSUSE] openSUSE 11.2 Reporter: Elmar Stellnberger <estellnb>
Component: AppArmorAssignee: Jeff Mahoney <jeffm>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: maint-coord, suse-beta, tyuan
Version: Milestone 6   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard: .
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Deadline: 2011-11-10   

Description Elmar Stellnberger 2009-08-28 12:28:43 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.2) Gecko/20090730 SUSE/3.5.2-2.4 Firefox/3.5.2

application to profile:
/usr/bin/thunderbird
create
search in system protocol for apparmor events
error:
Email support@novell.com: error

Reproducible: Always
Comment 1 Elmar Stellnberger 2009-08-28 12:29:22 UTC
After giving this message it simply quits.
Comment 2 Christian Boltz 2009-09-19 20:43:46 UTC
The YaST module is not broken itsself, the problem is directly in the underlaying genprof/logprof utils - see bug 540525 for details.


The part of the report that should be handled here is the useless error message YaST is displaying. (I doubt if support@novell.com could help in this case - if someone tries to mail them, please post the result ;-)

The y2log is also not too helpful here. The only error message I see is:
    2009-09-19 22:07:58 <3> geeko(22795) [liby2] 
    Y2ProgramComponent.cc(receiveFromExternal):361 External program 
    /usr/lib/YaST2/servers_non_y2/ag_logprof died unexpectedly

Note: This affects the module for genprof as well as the logprof module.

The YaST modules should display (and log) a better error message - if in doubt, displaying the raw stderr output of genprof is a better option than displaying a useless error message.
Comment 3 Jeff Mahoney 2009-10-13 20:21:34 UTC
Can you see if the packages posted for bnc#540525 fix this issue for you?
Comment 4 Christian Boltz 2009-10-13 21:49:18 UTC
Just tested this: as expected, the error message is no longer displayed and the YaST module doesn't quit unexpectedly. However, real testing needs to wait for bug 546618 so that YaST / genprof actually sees the audit.log entries.
(Elmar, please try the test packages from bug 546618 once they are synced out.)

That said: IMHO there should be a better error messages - see my comment #2 for details.
Comment 5 Katarina Machalkova 2009-11-23 15:25:00 UTC
I've replaced the msg with something meaningful now. y2-apparmor 2.19.0 submitted to Factory, but feel free to use YaST:Head repo if you want to test 11.2
Comment 6 Swamp Workflow Management 2011-10-13 19:26:40 UTC
The SWAMPID for this issue is 43659.
This issue was rated as low.
Please submit fixed packages until 2011-11-10.
Also create a patchinfo file using this link:
https://swamp.suse.de/webswamp/wf/43659
Comment 7 Tony Yuan 2011-11-22 09:53:49 UTC
This patch has been wrongly submitted in a dhcpv6 update for sle10sp4 (md5 f58d697f7cbdddc3957808d2090a2743)