[apparmor] [patch] fix aa-unconfined to work in all languages

Kshitij Gupta kgupta8592 at gmail.com
Fri Sep 20 04:40:45 UTC 2013


Hello,

If someone will ever read the code they'll probably wonder what LANG=C
is supposed to do? and in some weird case if it happens that someone
has netstat with a translation local 'C' (very unlikely ;-) we might
get into a problem.

In my opinion use of LANG=en or LANG=en_US seems better (but I maybe wrong).

Regards,
Kshitij

On Fri, Sep 20, 2013 at 4:26 AM, Steve Beattie <steve at nxnw.org> wrote:
> On Thu, Sep 19, 2013 at 11:31:19PM +0200, Christian Boltz wrote:
>> 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.
>
> Acked-by: Steve Beattie <steve at nxnw.org> for trunk and 2.8
>
>
> --
> Steve Beattie
> <sbeattie at ubuntu.com>
> http://NxNW.org/~steve/
>
> --
> AppArmor mailing list
> AppArmor at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
>



More information about the AppArmor mailing list