Remove use of PROT_EXEC Resolves: rhbz #307531

This commit is contained in:
Daniel P. Berrange 2007-09-26 20:06:31 +00:00
parent 716b46ebb5
commit 3bb127eceb
2 changed files with 20 additions and 1 deletions

View File

@ -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;

View File

@ -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 <berrange@redhat.com> - 0.2.0-2.fc8
- Remove use of PROT_EXEC for coroutine stack (rhbz #307531 )
* Thu Sep 13 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-1.fc8
- Update to 0.2.0 release