glob in aa-genprof repeats same option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Fix Released
|
Undecided
|
AppArmor Developers |
Bug Description
When using glob, the glob does not check if the entries mentioned previously is repeated or not. Using a simple check to match against the previous entry will solve this and prevent such long pointless lists.
| [(A)llow] / (D)eny / (G)lob / Glob w/(E)xt / (N)ew / Abo(r)t / (F)inish / (O)pts
|
| Profile: /usr/sbin/mtr
| Path: /etc/gai.conf
| Mode: r
| Severity: unknown
|
|
| 1 - #include <abstractions/
| 2 - #include <abstractions/
| 3 - /etc/gai.conf
| 4 - /etc/*
| 5 - /**
| 6 - /**
| 7 - /**
| 8 - /**
| 9 - /**
| 10 - /**
| 11 - /**
| 12 - /**
| 13 - /**
| 14 - /**
| [15 - /**]
|
| [(A)llow] / (D)eny / (G)lob / Glob w/(E)xt / (N)ew / Abo(r)t / (F)inish / (O)pts
I'm assuming this is a problem with the AppArmor library based in Perl. I'm trying to work a way to fix it.
(BTW, my first bug report ever.)
Changed in apparmor: | |
assignee: | nobody → Kshitij Gupta (kgupta8592) |
status: | New → Fix Released |
Changed in apparmor: | |
assignee: | Kshitij Gupta (kgupta8592) → nobody |
Changed in apparmor: | |
status: | Fix Released → Fix Committed |
The following patch fixes the above bug by adding the following line (after line 3883 in AppArmor.pm, which is located in /usr/lib/ perl5/vendor_ perl/5. 16.2/Immunix ): uniq(@options) ;
@options=
I have also provided the updated file for anyone who doesn't want to manually fix the bug.
A perl script to insert the line can be done, but that would be an overkill.