Remove use of PROT_EXEC Resolves: rhbz #307531
This commit is contained in:
parent
716b46ebb5
commit
3bb127eceb
14
gtk-vnc-0.2.0-execmem.patch
Normal file
14
gtk-vnc-0.2.0-execmem.patch
Normal 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;
|
@ -3,10 +3,11 @@
|
|||||||
Summary: A GTK widget for VNC clients
|
Summary: A GTK widget for VNC clients
|
||||||
Name: gtk-vnc
|
Name: gtk-vnc
|
||||||
Version: 0.2.0
|
Version: 0.2.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
|
Patch1: %{name}-%{version}-execmem.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
URL: http://gtk-vnc.sf.net/
|
URL: http://gtk-vnc.sf.net/
|
||||||
BuildRequires: gtk2-devel pygtk2-devel python-devel gnutls-devel
|
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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
@ -80,6 +82,9 @@ rm -fr %{buildroot}
|
|||||||
%{_libdir}/python*/site-packages/gtkvnc.so
|
%{_libdir}/python*/site-packages/gtkvnc.so
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Sep 13 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-1.fc8
|
||||||
- Update to 0.2.0 release
|
- Update to 0.2.0 release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user