Don't create world writable pki/*/incomming directory (#845351)

f38
Thomas Graf 12 years ago
parent 1046df0551
commit c095cf8a72

@ -0,0 +1,12 @@
diff -Nru openvswitch-1.7.1.orig/utilities/ovs-pki openvswitch-1.7.1/utilities/ovs-pki
--- openvswitch-1.7.1.orig/utilities/ovs-pki.in 2012-11-01 14:32:27.739264199 +0100
+++ openvswitch-1.7.1/utilities/ovs-pki.in 2012-11-01 14:33:20.411784428 +0100
@@ -219,7 +219,7 @@
mkdir -p certs crl newcerts
mkdir -p -m 0700 private
- mkdir -p -m 0733 incoming
+ mkdir -p -m 0700 incoming
touch index.txt
test -e crlnumber || echo 01 > crlnumber
test -e serial || echo 01 > serial

@ -1,6 +1,6 @@
Name: openvswitch Name: openvswitch
Version: 1.7.1 Version: 1.7.1
Release: 4%{?dist} Release: 5%{?dist}
Summary: Open vSwitch daemon/database/utilities Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the # Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@ -20,6 +20,7 @@ Source7: openvswitch-configure-ovskmod-var.patch
# make the kmod name configurable since Fedora kernel ships openvswitch module # make the kmod name configurable since Fedora kernel ships openvswitch module
# Source7 is not applied, it's used to generate patch0 # Source7 is not applied, it's used to generate patch0
Patch0: openvswitch-configure-ovskmod-var-autoconfd.patch Patch0: openvswitch-configure-ovskmod-var-autoconfd.patch
Patch1: openvswitch-ovs-pki-perm.patch
BuildRequires: systemd-units openssl openssl-devel BuildRequires: systemd-units openssl openssl-devel
BuildRequires: python python-twisted-core python-twisted-conch python-zope-interface PyQt4 BuildRequires: python python-twisted-core python-twisted-conch python-zope-interface PyQt4
@ -83,7 +84,7 @@ causing them to function as L2 MAC-learning switches or hub.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .ovskmod %patch0 -p1 -b .ovskmod
%patch1 -p1 -b .openvswitch-ovs-pki-perm
%build %build
%configure --enable-ssl --with-pkidir=%{_sharedstatedir}/openvswitch/pki OVSKMOD=openvswitch %configure --enable-ssl --with-pkidir=%{_sharedstatedir}/openvswitch/pki OVSKMOD=openvswitch
@ -204,6 +205,9 @@ desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE6}
%changelog %changelog
* Tue Nov 1 2012 Thomas Graf <tgraf@redhat.com> - 1.7.1-5
- Don't create world writable pki/*/incomming directory (#845351)
* Tue Oct 25 2012 Thomas Graf <tgraf@redhat.com> - 1.7.1-4 * Tue Oct 25 2012 Thomas Graf <tgraf@redhat.com> - 1.7.1-4
- Don't add iptables accept rule for -p GRE as GRE tunneling is unsupported - Don't add iptables accept rule for -p GRE as GRE tunneling is unsupported

Loading…
Cancel
Save