From a04e00cb31f89e8cc53f4396459b5bb37553910d Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Fri, 16 Jan 2009 18:14:14 +0000 Subject: [PATCH] - disable ptrace sandbox to fix build on i386 --- vsftpd-2.1.0-disable_ptrace.patch | 12 ++++++++++++ vsftpd-2.1.0-warnings.patch | 27 +++++++++++++++++++++++---- vsftpd.spec | 8 +++++++- 3 files changed, 42 insertions(+), 5 deletions(-) create mode 100644 vsftpd-2.1.0-disable_ptrace.patch diff --git a/vsftpd-2.1.0-disable_ptrace.patch b/vsftpd-2.1.0-disable_ptrace.patch new file mode 100644 index 0000000..4c7e435 --- /dev/null +++ b/vsftpd-2.1.0-disable_ptrace.patch @@ -0,0 +1,12 @@ +diff -up vsftpd-2.1.0/ptracesandbox.c.disable_ptrace vsftpd-2.1.0/ptracesandbox.c +--- vsftpd-2.1.0/ptracesandbox.c.disable_ptrace 2009-01-16 19:04:48.000000000 +0100 ++++ vsftpd-2.1.0/ptracesandbox.c 2009-01-16 19:04:56.000000000 +0100 +@@ -14,7 +14,7 @@ + + #include "ptracesandbox.h" + +-#if defined(__linux__) && defined(__i386__) ++#if defined(__linux__) && defined(__i386__) && 0 + + #include + #include diff --git a/vsftpd-2.1.0-warnings.patch b/vsftpd-2.1.0-warnings.patch index ceae5c5..f43a6be 100644 --- a/vsftpd-2.1.0-warnings.patch +++ b/vsftpd-2.1.0-warnings.patch @@ -1,7 +1,27 @@ diff -up vsftpd-2.1.0/ptracesandbox.c.warnings vsftpd-2.1.0/ptracesandbox.c ---- vsftpd-2.1.0/ptracesandbox.c.warnings 2009-01-15 15:31:26.000000000 +0100 -+++ vsftpd-2.1.0/ptracesandbox.c 2009-01-15 15:32:56.000000000 +0100 -@@ -1146,6 +1146,7 @@ int +--- vsftpd-2.1.0/ptracesandbox.c.warnings 2009-01-09 07:20:00.000000000 +0100 ++++ vsftpd-2.1.0/ptracesandbox.c 2009-01-16 19:01:27.000000000 +0100 +@@ -20,6 +20,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -31,10 +32,10 @@ + #include + + #include +-#include + + /* For the socketcall() multiplex args. */ + #include ++#include + + #ifndef PTRACE_SETOPTIONS + #define PTRACE_SETOPTIONS 0x4200 +@@ -1146,6 +1147,7 @@ int ptrace_sandbox_run_processes(struct pt_sandbox* p_sandbox) { (void) p_sandbox; @@ -9,4 +29,3 @@ diff -up vsftpd-2.1.0/ptracesandbox.c.warnings vsftpd-2.1.0/ptracesandbox.c } void -diff -up vsftpd-2.1.0/sysdeputil.c.warnings vsftpd-2.1.0/sysdeputil.c diff --git a/vsftpd.spec b/vsftpd.spec index 7fd747b..add9b35 100644 --- a/vsftpd.spec +++ b/vsftpd.spec @@ -2,7 +2,7 @@ Name: vsftpd Version: 2.1.0 -Release: 0.1.pre3%{?dist} +Release: 0.2.pre3%{?dist} Summary: Very Secure Ftp Daemon Group: System Environment/Daemons @@ -49,6 +49,8 @@ Patch9: vsftpd-2.1.0-userlist_log.patch # Sent upstream on 2009-01-16 via email Patch10: vsftpd-2.1.0-warnings.patch +Patch11: vsftpd-2.1.0-disable_ptrace.patch + %description vsftpd is a Very Secure FTP daemon. It was written completely from @@ -71,6 +73,7 @@ cp %{SOURCE1} . %patch8 -p1 -b .greedy %patch9 -p1 -b .userlist_log %patch10 -p1 -b .warnings +%patch11 -p1 -b .disable_ptrace %build @@ -133,6 +136,9 @@ fi %changelog +* Fri Jan 16 2009 Martin Nagy - 2.1.0-0.2.pre3 +- disable ptrace sandbox to fix build on i386 + * Fri Jan 16 2009 Martin Nagy - 2.1.0-0.1.pre3 - update to latest upstream release - cleanup the spec file