Hide Forgot
Description of problem: The restorecon man page doesn't include possible return values. It apparently returns 0 if it does nothing and 1 if it changes the context. Unclear what other possible values might be. Version-Release number of selected component (if applicable): policycoreutils-2.0.83-19.13.el6.i686 Steps to Reproduce: 1. chcon -t ssh_home_t ~/.emacs 2. restorecon ~/.emacs 3. echo $? Value will be 1.
I changed restorecon to return 0 on success like it did in RHEL6.0. Fixed in policycoreutils-2.0.83-19.16.el6
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1637.html