aa-logprof: doesn't remove redundant rules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: apparmor
Ubuntu 8.04.2
Package: apparmor-utils
Version: 2.1+1075-0ubuntu9.2
My understanding of the aa-logprof documentation is that it is supposed to remove specific rules that are obviated by broader rules, but examining the diff after a profile update seems to show otherwise:
# rcsdiff usr.sbin.smbd .RCS/usr.
[...]
19a19,21
> /data/ r,
> /data/** krw,
[...]
30a34,36
> /var/log/
> /var/log/
> /var/log/
34,36c40,44
[...]
> /video/ r,
> /video/** krw,
> /video2/**/ r,
> /video2/
> /video2/
Many of those rules appear redundant, and I'm sure at least a few are, such as the last 3 lines.
Thanks for the bug report! As it turns out, /dir/ and /dir have different meanings, so those rules do not seem to be redundant. Please feel free to report any other issues you find.