Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 207169 - restorecon fails to report errors to stdout
restorecon fails to report errors to stdout
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: policycoreutils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2006-09-19 15:45 EDT by John W. Lockhart
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version: RHBA-2007-0227
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-05-01 18:46:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0227 normal SHIPPED_LIVE policycoreutils bug fix update 2007-04-27 17:37:00 EDT

  None (edit)
Description John W. Lockhart 2006-09-19 15:45:56 EDT
Description of problem:
restorecon does not print to stdout what it would save
to a file.

Version-Release number of selected component (if applicable):

How reproducible:
On a RHEL4 system:
   rpm -ql xorg-x11-xfs | restorecon -n -v -f -
   (no output)
   rpm -ql xorg-x11-xfs | restorecon -n -v -o FOO -f -
   (no output)
   cat FOO

Note also:
# rpm -V  xorg-x11-xfs
........C c /etc/X11/fs/config

# rpm -ql xorg-x11-xfs | restorecon -n -vv -f -
restorecon reset context

Steps to Reproduce:
See above
Actual results:
Hidden error

Expected results:

Names of files should appear on stdout when requested.
Prefer that the output be:
<path/filename> <expected context> <actual context>

And that the exit code be non-zero if unexpected contexts
are discovered.

(Note also that '-o -' creates a file named '-' rather than
writing to stdout.)
Comment 1 Daniel Walsh 2007-01-29 11:03:38 EST
Fixed in policycoreutils-1.18.1-4.10
Comment 8 Red Hat Bugzilla 2007-05-01 18:46:55 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.