mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
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:
parent
c854a5b81e
commit
204a96ed58
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue