aa-genprof start but doesn't allow any action

Bug #1478659 reported by Thomas d'Otreppe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
Invalid
Undecided
Unassigned
apparmor (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Package version: 2.8.95~2430-0u
Ubuntu version: 14.04.2 LTS 64 bit server
Kernel version: 3.16.0-39

I tried to generate a profile for one of the tools in quagga: /usr/lib/quagga/bgp.

I did the following:
aa-autodep /usr/lib/quagga/bgp
aa-genprof /usr/lib/quagga/bgp

Genprof show the screen explaining you have to play with the app and to Scan at the end. However, it doesn't display those actions and stops at the paragraph "For each AppArmor event, you be given the opportunity to choose whether the access should be allowed or denied."

There is no option whatsoever. Even pressing 's' then hitting Enter doesn't do anything. Or even just hitting Enter doesn't do anything.

Note: I have installed auditd install because of https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1432350 and I can see events in the audit log from the program I'm monitoring
Note 2: Apparmor (profile generation part) is also pretty much unusable on 15.04 (different issues I think).

Revision history for this message
Christian Boltz (cboltz) wrote :

When you press "s" to scan the logs, this might take some time if you have lots of log entries.
- how long did you wait?
- if it still hangs after waiting, press Ctrl-c to abort the hard way. You should see a backtrace that shows where it is working (or hanging) currently - please paste it into the bugreport.

Revision history for this message
Thomas d'Otreppe (thomas-dotreppe) wrote :

I waited a few seconds then hit Ctrl-C to stop it. Unfortunately, I didn't save it and I deleted that virtual machine. Trying to reproduce just gave me another traceback:
File 'usr/sbin/aa-genprof", line 148, in <module>
  q = aaui.PromptQuestion()

Mathew Hodson (mhodson)
tags: added: trusty
tags: added: aa-tools
Changed in apparmor (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Christian Boltz (cboltz) wrote :

(sorry for the long delay)

comment #2 means you Ctrl-C'd it while waiting for your input ;-)

If you still see this problem, please try to interrupt it in another place ;-) and report back.

Revision history for this message
Christian Boltz (cboltz) wrote :

I'm afraid the given information isn't enough to reproduce and debug this problem :-(

If you hit this again, please reopen and provide some more details.

Changed in apparmor:
status: New → Invalid
Changed in apparmor (Ubuntu):
status: New → Invalid
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.