rpms/net-snmp/devel net-snmp-5.1.2-snmpconf-selinux.patch, NONE, 1.1 net-snmp.spec, 1.118, 1.119

Jan Šafránek (jsafrane) fedora-extras-commits at redhat.com
Tue Jul 31 08:14:07 UTC 2007


Author: jsafrane

Update of /cvs/pkgs/rpms/net-snmp/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5823

Modified Files:
	net-snmp.spec 
Added Files:
	net-snmp-5.1.2-snmpconf-selinux.patch 
Log Message:
snmpconf generates config files with proper selinux context
Resolves: #247462

net-snmp-5.1.2-snmpconf-selinux.patch:

--- NEW FILE net-snmp-5.1.2-snmpconf-selinux.patch ---
--- 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");
     }
 }
 


Index: net-snmp.spec
===================================================================
RCS file: /cvs/pkgs/rpms/net-snmp/devel/net-snmp.spec,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -r1.118 -r1.119
--- net-snmp.spec	30 Jul 2007 11:50:35 -0000	1.118
+++ net-snmp.spec	31 Jul 2007 08:13:35 -0000	1.119
@@ -44,6 +44,7 @@
 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 @@
 %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 @@
 %changelog
 * Mon Jul 30 2007  Safranek <jsafranek at 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 at redhat.com> 5.4-15
 - fix default snmptrapd.conf




More information about the scm-commits mailing list