monitoring/rhnmd/rhnmd.spec | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 0c39b9ff8081f804c68ce17575e49b28768e0f21 Author: Tomas Kasparek tkasparek@redhat.com Date: Tue Aug 28 16:49:22 2012 +0200
852386 - Independent SElinux policy for rhel5
Added if with policy for rhel5 (differs from other systems).
diff --git a/monitoring/rhnmd/rhnmd.spec b/monitoring/rhnmd/rhnmd.spec index 81e4b93..9ddfd88 100644 --- a/monitoring/rhnmd/rhnmd.spec +++ b/monitoring/rhnmd/rhnmd.spec @@ -91,7 +91,11 @@ fi %endif /sbin/chkconfig --add rhnmd /usr/sbin/semanage fcontext -a -t sshd_key_t '/var/lib/nocpulse/.ssh/nocpulse-identity' || : +%if 0%{?rhel} && "%rhel" < "6" +/usr/sbin/semanage fcontext -a -t sshd_key_t '/var/lib/nocpulse/.ssh/authorized_keys' || : +%else /usr/sbin/semanage fcontext -a -t ssh_home_t '/var/lib/nocpulse/.ssh/authorized_keys' || : +%endif /sbin/restorecon -rvv /var/lib/nocpulse || :
%preun
spacewalk-commits@lists.fedorahosted.org