audit2allow/sepolgen not setting the locale properly when calculating the bootdate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

When using a locale that use the date format other than MM/DD/YY,
allow2audit -b is not working properly (shows <no matches>). The
ausearch executable is expecting the date to be formatted in the user
locale.

Explicitly setting "locale.setlocale(locale.LC_ALL, '')" inside the
sepolgen get_audit_boot_msgs() function (or in the allow2audit
executable) is passing the correct date to the ausearch executable.

I'll propose a patch for this if you want, but I'm not sure if you would
prefer this to be fixed in the audit2allow executable or in the sepolgen
python library.

Cheers

Laurent Bigonville

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux