[apparmor] [patch] fix aa-unconfined to work in all languages
Christian Boltz
apparmor at cboltz.de
Thu Sep 19 21:31:19 UTC 2013
Hello,
as discussed in #apparmor:
aa-unconfined displays less unconfined processes in some languages (for
example with LANG=pt_BR) because a regex relies on netstat output.
The following patch enforces LANG=C to make sure aa-unconfined always
sees the expected output.
I propose this patch for trunk and 2.8.
=== modified file 'utils/aa-unconfined'
--- utils/aa-unconfined 2011-01-13 21:58:26 +0000
+++ utils/aa-unconfined 2013-09-19 21:27:56 +0000
@@ -60,7 +60,7 @@
@pids = grep { /^\d+$/ } readdir(PROC);
closedir(PROC);
} else {
- if (open(NETSTAT, "/bin/netstat -nlp |")) {
+ if (open(NETSTAT, "LANG=C /bin/netstat -nlp |")) {
while (<NETSTAT>) {
chomp;
push @pids, $5
Regards,
Christian Boltz
--
Auch wenn da nix sein KANN und Du lieber neue Parameter einbaust. Tust
Du MIR bitte mal den Gefallen und liest Du wenigstens EINMAL Deine
main.cf auf komische Umbrüche und Einträge hin durch? Nur mir zuliebe,
bitte. Ich weiß, ist natürlich Unsinn. Machst Du es trotzdem?
[Peer Heinlein in postfixbuch-users]
More information about the AppArmor
mailing list