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 <steve@nxnw.org>
This commit is contained in:
Christian Boltz 2013-09-20 13:23:47 +02:00
parent c854a5b81e
commit 204a96ed58

View file

@ -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 (<NETSTAT>) {
chomp;
push @pids, $5