From 42d4d3b08ccf8a0bdd79f6f046d86af23315131f Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Mon, 17 Dec 2012 15:34:20 -0500 Subject: [PATCH] Fix audit2allow -b to work in all timezones --- policycoreutils-rhat.patch | 12 ++++++++++++ policycoreutils.spec | 5 ++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/policycoreutils-rhat.patch b/policycoreutils-rhat.patch index 66c6564..1da507c 100644 --- a/policycoreutils-rhat.patch +++ b/policycoreutils-rhat.patch @@ -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" diff --git a/policycoreutils.spec b/policycoreutils.spec index ec24866..7789540 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -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 - 2.1.12-27.1 +- Fix audit2allow -b to work in all timezones + * Wed Nov 7 2012 Dan Walsh - 2.1.12-27 - Only report restorecon warning for missing default label, if not running recusively