Fix audit2allow -b to work in all timezones

This commit is contained in:
Dan Walsh 2012-12-17 15:34:20 -05:00
parent f3e0d7cac1
commit 42d4d3b08c
2 changed files with 16 additions and 1 deletions

View File

@ -343980,3 +343980,15 @@ index ca24003..b11e49f 100644
}
maybe_audit_mass_relabel(mass_relabel, errors);
diff -up a/policycoreutils-2.1.13/audit2allow/audit2allow~ b/policycoreutils-2.1.13/audit2allow/audit2allow
--- a/policycoreutils-2.1.13/audit2allow/audit2allow~ 2012-12-17 15:27:58.060663871 -0500
+++ b/policycoreutils-2.1.13/audit2allow/audit2allow 2012-12-17 15:28:04.309664282 -0500
@@ -29,6 +29,8 @@ import sepolgen.defaults as defaults
import sepolgen.module as module
from sepolgen.sepolgeni18n import _
import selinux.audit2why as audit2why
+import locale
+locale.setlocale(locale.LC_ALL, '')
class AuditToPolicy:
VERSION = "%prog .1"

View File

@ -4,7 +4,7 @@
Summary: SELinux policy core utilities
Name: policycoreutils
Version: 2.1.13
Release: 27%{?dist}
Release: 27.1%{?dist}
License: GPLv2
Group: System Environment/Base
# Based on git repository with tag 20101221
@ -325,6 +325,9 @@ The policycoreutils-restorecond package contains the restorecond service.
%{_bindir}/systemctl try-restart restorecond.service >/dev/null 2>&1 || :
%changelog
* Wed Nov 7 2012 Dan Walsh <dwalsh@redhat.com> - 2.1.12-27.1
- Fix audit2allow -b to work in all timezones
* Wed Nov 7 2012 Dan Walsh <dwalsh@redhat.com> - 2.1.12-27
- Only report restorecon warning for missing default label, if not running
recusively