- Fix order of Password TLS certificate choosers (rh #464765)

- Use %find_lang for locale-specific files (rh #448551)
- Fix --script-security issues with OpenVPN 2.1-rc9 and later (rh #460754)
epel8
Daniel Williams 16 years ago
parent f8b55826c4
commit 8b5809d608

@ -10,7 +10,7 @@ Summary: NetworkManager VPN integration for OpenVPN
Name: NetworkManager-openvpn Name: NetworkManager-openvpn
Epoch: 1 Epoch: 1
Version: 0.7.0 Version: 0.7.0
Release: 15.%{svn_snapshot}%{?dist} Release: 16.%{svn_snapshot}%{?dist}
License: GPLv2+ License: GPLv2+
URL: http://www.gnome.org/projects/NetworkManager/ URL: http://www.gnome.org/projects/NetworkManager/
Group: System Environment/Base Group: System Environment/Base
@ -21,6 +21,9 @@ Group: System Environment/Base
# - make distcheck # - make distcheck
# - use generated NetworkManager-openvpn-0.7.0.tar.gz # - use generated NetworkManager-openvpn-0.7.0.tar.gz
Source: %{name}-%{version}.%{svn_snapshot}.tar.gz Source: %{name}-%{version}.%{svn_snapshot}.tar.gz
Patch0: nm-openvpn-fix-pw-tls-entries.patch
Patch10: nm-openvpn-script-security.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: gtk2-devel >= %{gtk2_version}
BuildRequires: dbus-devel >= %{dbus_version} BuildRequires: dbus-devel >= %{dbus_version}
@ -55,6 +58,9 @@ with NetworkManager and the GNOME desktop.
%prep %prep
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%patch0 -p1 -b .pw-tls-entries
%patch10 -p1 -b .script-security
%build %build
if [ ! -f configure ]; then if [ ! -f configure ]; then
./autogen.sh ./autogen.sh
@ -68,6 +74,8 @@ make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
%find_lang %{name}
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
@ -87,7 +95,7 @@ if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi fi
%files %files -f %{name}.lang
%defattr(-, root, root) %defattr(-, root, root)
%doc AUTHORS ChangeLog README %doc AUTHORS ChangeLog README
@ -103,6 +111,11 @@ fi
%{_datadir}/locale/*/LC_MESSAGES/NetworkManager-openvpn.mo %{_datadir}/locale/*/LC_MESSAGES/NetworkManager-openvpn.mo
%changelog %changelog
* Tue Sep 30 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-16.svn4027
- Fix order of Password TLS certificate choosers (rh #464765)
- Use %find_lang for locale-specific files (rh #448551)
- Fix --script-security issues with OpenVPN 2.1-rc9 and later (rh #460754)
* Fri Aug 29 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-15.svn4027 * Fri Aug 29 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-15.svn4027
- Rebuild for updated NetworkManager - Rebuild for updated NetworkManager

@ -0,0 +1,21 @@
diff -up NetworkManager-openvpn-0.7.0/properties/nm-openvpn-dialog.glade.entries NetworkManager-openvpn-0.7.0/properties/nm-openvpn-dialog.glade
--- NetworkManager-openvpn-0.7.0/properties/nm-openvpn-dialog.glade.entries 2008-09-30 15:59:39.000000000 -0400
+++ NetworkManager-openvpn-0.7.0/properties/nm-openvpn-dialog.glade 2008-09-30 16:01:37.000000000 -0400
@@ -426,7 +426,7 @@
<widget class="GtkLabel" id="label8">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">CA Certificate:</property>
+ <property name="label" translatable="yes">User Certificate:</property>
</widget>
<packing>
<property name="top_attach">1</property>
@@ -438,7 +438,7 @@
<widget class="GtkLabel" id="label6">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">User Certificate:</property>
+ <property name="label" translatable="yes">CA Certificate:</property>
</widget>
<packing>
<property name="top_attach">2</property>

@ -0,0 +1,17 @@
diff -up NetworkManager-openvpn-0.7.0/src/nm-openvpn-service.c.script-security NetworkManager-openvpn-0.7.0/src/nm-openvpn-service.c
--- NetworkManager-openvpn-0.7.0/src/nm-openvpn-service.c.script-security 2008-09-30 15:56:42.000000000 -0400
+++ NetworkManager-openvpn-0.7.0/src/nm-openvpn-service.c 2008-09-30 15:57:03.000000000 -0400
@@ -611,6 +611,13 @@ nm_openvpn_start_openvpn_binary (NMOpenv
add_openvpn_arg (args, "--syslog");
add_openvpn_arg (args, "nm-openvpn");
+ /* Punch script security in the face; this option was added to OpenVPN 2.1-rc9
+ * and defaults to disallowing any scripts, a behavior change from previous
+ * versions.
+ */
+ add_openvpn_arg (args, "--script-security");
+ add_openvpn_arg (args, "2");
+
/* Up script, called when connection has been established or has been restarted */
add_openvpn_arg (args, "--up");
add_openvpn_arg (args, NM_OPENVPN_HELPER_PATH);
Loading…
Cancel
Save