openshift/origin-server — pull request #5571 by nak3 (2014-07-05 02:09:36+00:00)
Title: Add -v option to restorecon to see the result

Please check the result current result and after this patch applied. Now oo-restorecon -v option is just show the command only.

( Current )
[root@node1 ~]# /usr/sbin/oo-restorecon -av
restorecon -R -v /var/lib/openshift/5399bb133a0fb2fd24000001/
chcon -l s0:c1,c1022 -R /var/lib/openshift/5399bb133a0fb2fd24000001/*

(After this patch applied)
[root@node1 ~]# /usr/sbin/oo-restorecon -av
restorecon -R -v /var/lib/openshift/5399bb133a0fb2fd24000001/
restorecon reset /var/lib/openshift/5399bb133a0fb2fd24000001/hoge context unconfined_u:object_r:usr_t:s0:c1,c1022->unconfined_u:object_r:openshift_var_lib_t:s0:c1,c1022
chcon -l s0:c1,c1022 -R /var/lib/openshift/5399bb133a0fb2fd24000001/*