Bug 143427

Summary: Update Profile Wizard lacks functionality of choosing exact profile to update.
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Olli Artemjev <grey-olli>
Component: AppArmorAssignee: Katarina Machalkova <kmachalkova>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P2 - High CC: apparmor-dev, grey-olli
Version: FinalKeywords: Bad_Design, UI
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Olli Artemjev 2006-01-17 00:01:38 UTC
After running YaST-> AppArmor -> Update Profile Wizard to capture the new behavior after 'complain <utility>' it should be ability to choose the profile for that one utility. W/o this I've to walk through all events for all profiles. This is _very_ user unfriendly interface.
Comment 1 Dominic W Reynolds 2006-01-31 00:54:36 UTC
The command line alternative "logprof" provides an argument -m "logmark" which allows the user to specify a "mark" (date string for example) to denote the point to start reading events. This feature is missing from the YaST UI.

Comment 2 Steve Beattie 2006-01-31 19:33:17 UTC
[cc:ing apparmor-dev@ for discussion]

Dominic: that helps if they're seperated in time, but if they're commingled in the logs, you get to deal with them all. IMO, logprof and its yast counterpart ought to offer up a list of profiles that have outstanding events that need handling, and then let the user select them one by one to process.
Comment 3 Seth R Arnold 2006-01-31 19:48:43 UTC
We haven't added this feature because there is a complicating factor that we didn't know how to solve cleanly that is best described through an example:

Consider two programs and profiles, A and B. A execs B, but no execute permission has been granted in A's profile yet. You wish to update B's profile. However, we cannot determine which set of questions to ask about B until the user has made a decision about domain transitions between A and B.

I believe this situation is going to be rare once a system has been deployed, but early in profile generation it is likely any time the sysadmin works on multiple profiles simultaneously.

Perhaps we could do something like ask all the domain transition questions, and _then_ do the filtering down to a specific profile or program; I completely agree that it would be nice to say "I want to fix this specific problem and leave the rest for later."

Thanks Olli
Comment 4 Olli Artemjev 2006-01-31 21:51:59 UTC
That would be fine. 
As from the user view: the minimum I need is selecting one binary from lots & setting permisisions for this binary only. Yes it will be overriden if this is a doughter process. Though if I'm admin - I should know that. =) If you'll produce a "big-red-warning" :) with example above & then permit selections for this one binary - it'll be enough to make people think a bit & be aware of possibilities. =)
The more clever/adaptive solution may wait more.
Comment 5 Jesse Michael 2006-02-01 03:35:29 UTC
I think it definitely makes sense to have it display a list of which profiles currently have unhandled events in the log file and let the user select which ones to ask questions about.

Seth's right that if you launch the app you're interested in from another confined app that doesn't have a related rule, it could hide the execution and potentially be a little confusing, but I think it would work better overall.  (e.g. creating a firefox profile and then launching firefox from a confined gnome-panel process would show changes to the gnome-panel profile, but not changes to the firefox profile until you'd gone through and chosen to add a px rule for firefox to the gnome-panel profile)

I think it probably won't be that hard to fix this, but the thought of making yast interface changes makes me cringe a little.  :)
Comment 9 Lukas Ocilka 2008-05-20 21:58:15 UTC
Closing as LATER but probably rather WONTFIX for ENOTIME. Sorry.
Comment 10 John R Johansen 2008-05-21 01:06:51 UTC
Yes it is a LATER, it didn't make it into 11.0 but there was a lot of under the hood improvements and it is likely to show up in 11.1
Comment 11 Stephan Kulow 2008-06-25 09:34:45 UTC
mass reopening all SuSE Linux bugs that are set to REMIND+LATER to change the resolution to WONTFIX (adapting to new policy)
Comment 12 Stephan Kulow 2008-06-25 09:36:47 UTC
mass reopening all SuSE Linux bugs that are set to REMIND+LATER to change the resolution to WONTFIX (adapting to new policy)
Comment 13 Stephan Kulow 2008-06-25 09:41:49 UTC
mass reopening all SuSE Linux bugs that are set to REMIND+LATER to change the resolution to WONTFIX (adapting to new policy)
Comment 14 Stephan Kulow 2008-06-25 09:53:16 UTC
Closing old LATER+REMIND bugs as WONTFIX - if you still plan to work on it, feel free to reopen and set to ASSIGNED.

In case the report saw repeated reopen comments, it's due to bugzilla timing out on the huge request ;(