snmpconf generates config files with proper selinux context Resolves:

#247462
This commit is contained in:
Jan Šafránek 2007-07-31 08:13:35 +00:00
parent daa873da47
commit 9e790cb3ea
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- net-snmp-5.1.2/local/snmpconf.orig 2004-04-20 16:20:51.000000000 +0200
+++ net-snmp-5.1.2/local/snmpconf 2007-07-09 15:34:48.000000000 +0200
@@ -585,6 +585,7 @@
}
}
close(O);
+ system("restorecon $outputf");
}
}

View File

@ -44,6 +44,7 @@ Patch18: net-snmp-5.4-udp-endpoint.patch
Patch19: net-snmp-5.3.1-shared-ip.patch
Patch20: net-snmp-5.3.1-mib-option.patch
Patch21: net-snmp-5.4-exec-crash.patch
Patch22: net-snmp-5.1.2-snmpconf-selinux.patch
Requires(pre): /sbin/chkconfig
Requires(post): /sbin/chkconfig
@ -166,6 +167,7 @@ and applications.
%patch19 -p1 -b .shared-ip
%patch20 -p1 -b .mib-option
%patch21 -p1 -b .exec-crash
%patch22 -p1 -b .selinux
# Do this patch with a perl hack...
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
@ -374,6 +376,8 @@ rm -rf ${RPM_BUILD_ROOT}
%changelog
* Mon Jul 30 2007 Safranek <jsafranek@redhat.com> 5.4-16
- lm_sensors now supported on ppc64 (#249255)
- snmpconf generates config files with proper selinux context
(#247462)
* Thu Jun 28 2007 Jan Safranek <jsafranek@redhat.com> 5.4-15
- fix default snmptrapd.conf