summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/libpcap-ringbuffer/files/libpcap-ringbuffer-1.0.20050129-mmap-exec.patch')
-rw-r--r--net-libs/libpcap-ringbuffer/files/libpcap-ringbuffer-1.0.20050129-mmap-exec.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/net-libs/libpcap-ringbuffer/files/libpcap-ringbuffer-1.0.20050129-mmap-exec.patch b/net-libs/libpcap-ringbuffer/files/libpcap-ringbuffer-1.0.20050129-mmap-exec.patch
new file mode 100644
index 000000000000..595a181a14e3
--- /dev/null
+++ b/net-libs/libpcap-ringbuffer/files/libpcap-ringbuffer-1.0.20050129-mmap-exec.patch
@@ -0,0 +1,20 @@
+--- pcap-ring.c.orig 2005-06-03 18:27:27.000000000 +1000
++++ pcap-ring.c 2005-06-03 18:27:50.000000000 +1000
+@@ -78,7 +78,7 @@
+ }
+
+ p->rg.buf = (void*)mmap(NULL, pgs*pg_size,
+- PROT_READ|PROT_WRITE|PROT_EXEC,
++ PROT_READ|PROT_WRITE,
+ MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
+ if ((long)p->rg.buf == -1L) {
+ perror("mmap");
+@@ -185,7 +185,7 @@
+ return -2;
+ }
+
+- p->rg.buf = (void*)mmap(0, pgs*pg_size, PROT_READ|PROT_WRITE|PROT_EXEC,
++ p->rg.buf = (void*)mmap(0, pgs*pg_size, PROT_READ|PROT_WRITE,
+ MAP_SHARED, p->fd, 0);
+ if ((long)p->rg.buf == -1L) {
+ perror("Error: Could not allocate shared memory");