-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/I9vwACgkQrlYvE4MpobO8GgCdHngzHeq+ZmIL8FwDpad/mASw Zi8AoOL/gGuBUrK40UsbsOnNCUN+1Jw7 =eHSK -----END PGP SIGNATURE-----
>From 0b3e6afb9d41f3e6426518ee4cbbccc6a9075794 Mon Sep 17 00:00:00 2001 From: Dan Walsh <dwalsh@xxxxxxxxxx> Date: Mon, 30 Jan 2012 16:21:24 -0500 Subject: [PATCH 13/90] policycoreutils: scripts: Don't syslog setfiles changes on a fixfiles restore Fixfiles restore is called by auditrelabel, and was happening early in the boot process, before the syslog system was up and running. A bug in systemd was causing relabels to take forever, while it waited for the syslog's to complete. This was fixed, but I still see no reason to write thousands/millions of lines to syslog on a badly mislabled machine and wanted this featured turned off. Signed-off-by: Eric Paris <eparis@xxxxxxxxxx> Acked-by: Dan Walsh <dwalsh@xxxxxxxxxx> --- policycoreutils/scripts/fixfiles | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/policycoreutils/scripts/fixfiles b/policycoreutils/scripts/fixfiles index 9f6a949..779a6a1 100755 --- a/policycoreutils/scripts/fixfiles +++ b/policycoreutils/scripts/fixfiles @@ -121,7 +121,6 @@ LOGFILE=`tty` if [ $? != 0 ]; then LOGFILE="/dev/null" fi -SYSLOGFLAG="-l" LOGGER=/usr/sbin/logger SETFILES=/sbin/setfiles RESTORECON=/sbin/restorecon @@ -236,7 +235,7 @@ FC=$TEMPFCFILE fi if [ -n "${FILESYSTEMSRW}" ]; then echo "Relabeling `echo ${FILESYSTEMSRW}`" - ${SETFILES} -q ${SYSLOGFLAG} ${FORCEFLAG} $* ${FC} ${FILESYSTEMSRW} 2>&1 | cat >> $LOGFILE + ${SETFILES} -q ${FORCEFLAG} $* ${FC} ${FILESYSTEMSRW} 2>&1 | cat >> $LOGFILE else echo >&2 "fixfiles: No suitable file systems found" fi -- 1.7.10.2