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

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