policycoreutils/fixfiles: Fix "verify" option
PATCH 1/1 policycoreutils/fixfiles: Fix "verify" option
"restorecon -n" (used in the "restore" function) has to be used with "-v" to display the files whose labels would be changed.
Fixes:
Fixfiles verify does not report misslabelled files unless "-v" option is used.
--- policycoreutils/scripts/fixfiles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
policycoreutils/scripts/fixfiles +1 -1
@@ -302,7 +302,7 @@ process() { case "$1" in restore) restore Relabel;; check) VERBOSE="-v"; restore Check -n;; - verify) restore Verify -n;; + verify) VERBOSE="-v"; restore Verify -n;; relabel) relabel;; onboot) if [ "$RESTORE_MODE" != DEFAULT ]; then
Signature · 1 line
2.21.0
Quoted 6 lines · Vit Mojzis
"restorecon -n" (used in the "restore" function) has to be used with "-v" to display the files whose labels would be changed.
Fixes:
Fixfiles verify does not report misslabelled files unless "-v" option is used.
Please add a Signed-off-by line. With this change, aside from display "Verifying" vs. "Checking" there seems to be no difference between fixfiles verify and fixfiles check? Wondering if there was some difference originally?
Quoted 18 lines
--- policycoreutils/scripts/fixfiles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)policycoreutils/scripts/fixfiles +1
-1@@ -302,7 +302,7 @@ process() { case "$1" in restore) restore Relabel;; check) VERBOSE="-v"; restore Check -n;; - verify) restore Verify -n;; + verify) VERBOSE="-v"; restore Verify -n;; relabel) relabel;; onboot) if [ "$RESTORE_MODE" != DEFAULT ]; then
PATCH 1/1 policycoreutils/fixfiles: Fix "verify" option
"restorecon -n" (used in the "restore" function) has to be used with "-v" to display the files whose labels would be changed.
Fixes:
Fixfiles verify does not report misslabelled files unless "-v" option is used.
--- policycoreutils/scripts/fixfiles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
policycoreutils/scripts/fixfiles +1 -1
@@ -302,7 +302,7 @@ process() { case "$1" in restore) restore Relabel;; check) VERBOSE="-v"; restore Check -n;; - verify) restore Verify -n;; + verify) VERBOSE="-v"; restore Verify -n;; relabel) relabel;; onboot) if [ "$RESTORE_MODE" != DEFAULT ]; then
Signature · 1 line
2.21.0
Stephen Smalley
AppliedQuoted 8 lines · Vit Mojzis
"restorecon -n" (used in the "restore" function) has to be used with "-v" to display the files whose labels would be changed.
Fixes:
Fixfiles verify does not report misslabelled files unless "-v" option is used.Signed-off-by Vit Mojzis <[email protected]>
Thanks, applied.
Quoted 18 lines
--- policycoreutils/scripts/fixfiles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)policycoreutils/scripts/fixfiles +1
-1@@ -302,7 +302,7 @@ process() { case "$1" in restore) restore Relabel;; check) VERBOSE="-v"; restore Check -n;; - verify) restore Verify -n;; + verify) VERBOSE="-v"; restore Verify -n;; relabel) relabel;; onboot) if [ "$RESTORE_MODE" != DEFAULT ]; then
Quoted 10 lines · Stephen Smalley
Quoted 6 lines · Vit Mojzis
"restorecon -n" (used in the "restore" function) has to be used with "-v" to display the files whose labels would be changed.
Fixes:
Fixfiles verify does not report misslabelled files unless "-v" option is used.Please add a Signed-off-by line. With this change, aside from display "Verifying" vs. "Checking" there seems to be no difference between fixfiles verify and fixfiles check? Wondering if there was some difference originally?
Apparently "Verify" used to call "restorecon -n -o -", but "-o" is now obsolete. You are right, "Verify" and "Check" do the same thing now.
Quoted 19 lines
Quoted 18 lines
---
policycoreutils/scripts/fixfiles | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)policycoreutils/scripts/fixfiles +0
-0@@ -302,7 +302,7 @@ process() {case "$1" in
restore) restore Relabel;;
check) VERBOSE="-v"; restore Check -n;;
- verify) restore Verify -n;;
+ verify) VERBOSE="-v"; restore Verify -n;;
relabel) relabel;;
onboot)
if [ "$RESTORE_MODE" != DEFAULT ]; then