aa-cleanprof reports error attempting to write file

Bug #1443637 reported by Steve Beattie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
In Progress
Undecided
Christian Boltz

Bug Description

ubuntu@vivid-amd64:~/bzr/apparmor/utils$ PYTHONPATH=$PWD ./aa-cleanprof -d ~/tmp/aa-test/ /bin/true

Deleted 0 rules.

= Changed Local Profiles =

The local profile for /bin/true in file /home/ubuntu/tmp/aa-test/bin.true was changed. Would you like to save it?

(S)ave Changes / [(V)iew Changes] / Abo(r)t
--- /home/ubuntu/tmp/aa-test/bin.true 2015-04-13 13:16:53.390503033 -0700
+++ /tmp/tmpJQ46n7 2015-04-13 13:17:00.386502728 -0700
@@ -1,12 +1,11 @@
-# Last Modified: Mon Apr 13 11:43:20 2015
 #include <tunables/global>

 /bin/true {
   #include <abstractions/base>
- audit /bin/true ix,

   capability setuid,
- /bin/true ix,
   capability setuid,

+ /bin/true ix,
+
 }

= Changed Local Profiles =

The local profile for /bin/true in file /home/ubuntu/tmp/aa-test/bin.true was changed. Would you like to save it?

(S)ave Changes / [(V)iew Changes] / Abo(r)t
Writing updated profile for /bin/true.
cat: write error: Broken pipe

Notice the "cat: write error: Broken pipe" at the end.

Tags: aa-tools
Revision history for this message
Steve Beattie (sbeattie) wrote :

Oh, sorry, this the result of aa-cleanprof trying to reload the profile after modifying it, but not running as root. I think there might be a duplicate bug report about this.

summary: - aa-cleanprof reports error attempting to write file after viewing
- changes
+ aa-cleanprof reports error attempting to write file
Revision history for this message
Christian Boltz (cboltz) wrote :

Just to avoid any confusion - for the lost audit keyword, there is bug 1443642.

This bug is about the "cat: write error: Broken pipe" - that's caused by not running as root, which lets the pipe to apparmor_parser fail. Besides the non-informative error message, this is also worth a "useless use of cat" award ;-)

Christian Boltz (cboltz)
Changed in apparmor:
assignee: nobody → Christian Boltz (cboltz)
status: New → In Progress
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.