All of lore.kernel.org
 help / color / mirror / Atom feed
* audit2allow/sepolgen not setting the locale properly when calculating the bootdate
@ 2013-05-09 20:51 Laurent Bigonville
  2013-05-10 12:19 ` Daniel J Walsh
  0 siblings, 1 reply; 2+ messages in thread
From: Laurent Bigonville @ 2013-05-09 20:51 UTC (permalink / raw)
  To: selinux

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@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-10 12:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 20:51 audit2allow/sepolgen not setting the locale properly when calculating the bootdate Laurent Bigonville
2013-05-10 12:19 ` Daniel J Walsh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.