From 204a96ed58bf745204eee6fc4d7f706891f4adfc Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Fri, 20 Sep 2013 13:23:47 +0200 Subject: [PATCH] aa-unconfined displays less unconfined processes in some languages (for example with LANG=pt_BR) because a regex relies on netstat output. Enforce LANG=C to make sure aa-unconfined always sees the expected output. Acked-by: Steve Beattie --- utils/aa-unconfined | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/aa-unconfined b/utils/aa-unconfined index 44944150e..a5dac3e25 100755 --- a/utils/aa-unconfined +++ b/utils/aa-unconfined @@ -60,7 +60,7 @@ if ($paranoid) { @pids = grep { /^\d+$/ } readdir(PROC); closedir(PROC); } else { - if (open(NETSTAT, "/bin/netstat -nlp |")) { + if (open(NETSTAT, "LANG=C /bin/netstat -nlp |")) { while () { chomp; push @pids, $5