From 3bb127ecebf3c22129dbe7cd62ced9f4669daffa Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 26 Sep 2007 20:06:31 +0000 Subject: [PATCH] Remove use of PROT_EXEC Resolves: rhbz #307531 --- gtk-vnc-0.2.0-execmem.patch | 14 ++++++++++++++ gtk-vnc.spec | 7 ++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 gtk-vnc-0.2.0-execmem.patch diff --git a/gtk-vnc-0.2.0-execmem.patch b/gtk-vnc-0.2.0-execmem.patch new file mode 100644 index 0000000..7daa194 --- /dev/null +++ b/gtk-vnc-0.2.0-execmem.patch @@ -0,0 +1,14 @@ +diff -rup gtk-vnc-0.2.0.orig/src/coroutine.c gtk-vnc-0.2.0.new/src/coroutine.c +--- gtk-vnc-0.2.0.orig/src/coroutine.c 2007-09-13 17:11:29.000000000 -0400 ++++ gtk-vnc-0.2.0.new/src/coroutine.c 2007-09-26 15:48:23.000000000 -0400 +@@ -44,8 +44,8 @@ int coroutine_init(struct coroutine *co) + + co->cc.stack_size = co->stack_size; + co->cc.stack = mmap(0, co->stack_size, +- PROT_READ | PROT_WRITE | PROT_EXEC, +- MAP_SHARED | MAP_ANONYMOUS | MAP_GROWSDOWN, ++ PROT_READ | PROT_WRITE, ++ MAP_PRIVATE | MAP_ANONYMOUS, + -1, 0); + if (co->cc.stack == MAP_FAILED) + return -1; diff --git a/gtk-vnc.spec b/gtk-vnc.spec index 6489b25..1ec84c5 100644 --- a/gtk-vnc.spec +++ b/gtk-vnc.spec @@ -3,10 +3,11 @@ Summary: A GTK widget for VNC clients Name: gtk-vnc Version: 0.2.0 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ Group: Development/Libraries Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch1: %{name}-%{version}-execmem.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) URL: http://gtk-vnc.sf.net/ BuildRequires: gtk2-devel pygtk2-devel python-devel gnutls-devel @@ -41,6 +42,7 @@ A module allowing use of the GTK-VNC widget from python %prep %setup -q +%patch1 -p1 %build %configure @@ -80,6 +82,9 @@ rm -fr %{buildroot} %{_libdir}/python*/site-packages/gtkvnc.so %changelog +* Wed Sep 26 2007 Daniel P. Berrange - 0.2.0-2.fc8 +- Remove use of PROT_EXEC for coroutine stack (rhbz #307531 ) + * Thu Sep 13 2007 Daniel P. Berrange - 0.2.0-1.fc8 - Update to 0.2.0 release