From 135cdd9fc5b36aee7761a00d7cf04f48a39dfcefa556a0ae600d57e58c029897 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 26 Aug 2008 00:17:38 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/net-snmp?expand=0&rev=7 --- net-snmp-5.1.2-snmpconf-selinux.patch | 12 ++++++++++++ net-snmp.changes | 5 +++++ net-snmp.spec | 6 +++++- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 net-snmp-5.1.2-snmpconf-selinux.patch diff --git a/net-snmp-5.1.2-snmpconf-selinux.patch b/net-snmp-5.1.2-snmpconf-selinux.patch new file mode 100644 index 0000000..4c7f513 --- /dev/null +++ b/net-snmp-5.1.2-snmpconf-selinux.patch @@ -0,0 +1,12 @@ +https://bugzilla.redhat.com/show_bug.cgi?id=248329 + +--- net-snmp-5.1.2/local/snmpconf ++++ net-snmp-5.1.2/local/snmpconf +@@ -585,6 +585,7 @@ + } + } + close(O); ++ system("restorecon $outputf"); + } + } + diff --git a/net-snmp.changes b/net-snmp.changes index 977e817..35d6b92 100644 --- a/net-snmp.changes +++ b/net-snmp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 25 11:53:31 CEST 2008 - prusnak@suse.cz + +- fixed wrong SELinux context (selinux.patch) [Fate#303662] + ------------------------------------------------------------------- Fri Aug 22 16:19:33 CEST 2008 - mrueckert@suse.de diff --git a/net-snmp.spec b/net-snmp.spec index 1484e25..083caca 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -20,7 +20,7 @@ Name: net-snmp Version: 5.4.1 -Release: 92 +Release: 95 # License: BSD 3-Clause; X11/MIT Group: Productivity/Networking/Other @@ -63,6 +63,7 @@ Patch5: net-snmp-5.2.1.testing.empty_arptable.patch Patch6: net-snmp-5.1.1-pie.patch Patch7: net-snmp-5.3_vendorperl.patch Patch8: net-snmp-5.4_net-snmp-config_headercheck.patch +Patch9: net-snmp-5.1.2-snmpconf-selinux.patch # Summary: SNMP Daemon @@ -178,6 +179,7 @@ Authors: %patch6 %patch7 %patch8 +%patch9 -p1 find -name "CVS" -type d | xargs -r %{__rm} -rfv find -name ".cvsignore" | xargs -r %{__rm} -fv find -name "*.orig" | xargs -r %{__rm} -fv @@ -372,6 +374,8 @@ fi %{_bindir}/mib2c-update %changelog +* Mon Aug 25 2008 prusnak@suse.cz +- fixed wrong SELinux context (selinux.patch) [Fate#303662] * Fri Aug 22 2008 mrueckert@suse.de - fix init scripts - use %%fillup_only as we dont launch the daemon per default