Blame SOURCES/0027-policycoreutils-fixfiles-Fix-verify-option.patch

709a1f
From 4733a594c5df14f64293d19f16498e68dc5e3a98 Mon Sep 17 00:00:00 2001
709a1f
From: Vit Mojzis <vmojzis@redhat.com>
709a1f
Date: Tue, 24 Sep 2019 08:41:30 +0200
709a1f
Subject: [PATCH] policycoreutils/fixfiles: Fix "verify" option
709a1f
709a1f
"restorecon -n" (used in the "restore" function) has to be used with
709a1f
"-v" to display the files whose labels would be changed.
709a1f
709a1f
Fixes:
709a1f
   Fixfiles verify does not report misslabelled files unless "-v" option is
709a1f
   used.
709a1f
709a1f
Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
709a1f
---
709a1f
 policycoreutils/scripts/fixfiles | 2 +-
709a1f
 1 file changed, 1 insertion(+), 1 deletion(-)
709a1f
709a1f
diff --git a/policycoreutils/scripts/fixfiles b/policycoreutils/scripts/fixfiles
709a1f
index df0042aa..be19e56c 100755
709a1f
--- a/policycoreutils/scripts/fixfiles
709a1f
+++ b/policycoreutils/scripts/fixfiles
709a1f
@@ -304,7 +304,7 @@ process() {
709a1f
 case "$1" in
709a1f
     restore) restore Relabel;;
709a1f
     check) VERBOSE="-v"; restore Check -n;;
709a1f
-    verify) restore Verify -n;;
709a1f
+    verify) VERBOSE="-v"; restore Verify -n;;
709a1f
     relabel) relabel;;
709a1f
     onboot)
709a1f
 	if [ -n "$RESTORE_MODE" -a "$RESTORE_MODE" != DEFAULT ]; then
709a1f
-- 
709a1f
2.21.0
709a1f