summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-08-16 14:09:43 -0400
committerMike Gilbert <floppym@gentoo.org>2021-08-16 14:09:43 -0400
commit1a75a25262b20b9213dac8b2ebdd0c4938323b4b (patch)
tree1c65bc3a89aebca93a37c34a789db390ce05b00f /net-ftp
parentprofiles/package.mask: unmask dev-libs/intel-neo (diff)
downloadgentoo-1a75a25262b20b9213dac8b2ebdd0c4938323b4b.tar.gz
gentoo-1a75a25262b20b9213dac8b2ebdd0c4938323b4b.tar.bz2
gentoo-1a75a25262b20b9213dac8b2ebdd0c4938323b4b.zip
net-ftp/vsftpd: fix seccomp failures
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-ftp')
-rw-r--r--net-ftp/vsftpd/files/vsftpd-3.0.5-seccomp.patch25
-rw-r--r--net-ftp/vsftpd/vsftpd-3.0.5-r1.ebuild (renamed from net-ftp/vsftpd/vsftpd-3.0.5.ebuild)1
2 files changed, 26 insertions, 0 deletions
diff --git a/net-ftp/vsftpd/files/vsftpd-3.0.5-seccomp.patch b/net-ftp/vsftpd/files/vsftpd-3.0.5-seccomp.patch
new file mode 100644
index 000000000000..cd23e6b35c6a
--- /dev/null
+++ b/net-ftp/vsftpd/files/vsftpd-3.0.5-seccomp.patch
@@ -0,0 +1,25 @@
+From 8a0ec911c17b64747b7cb2ff6e912c7cbb87d39f Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Sat, 14 Aug 2021 09:31:04 -0400
+Subject: [PATCH] Fix seccomp failures in the postlogin broker
+
+---
+ seccompsandbox.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/seccompsandbox.c b/seccompsandbox.c
+index bcd96a0..5411d69 100644
+--- a/seccompsandbox.c
++++ b/seccompsandbox.c
+@@ -515,6 +515,8 @@ seccomp_sandbox_setup_postlogin_broker()
+ seccomp_sandbox_setup_base();
+ seccomp_sandbox_setup_data_connections();
+ allow_nr_1_arg_match(__NR_sendmsg, 3, 0);
++ allow_nr(__NR_alarm);
++ allow_nr(__NR_wait4);
+ }
+
+ void
+--
+2.32.0
+
diff --git a/net-ftp/vsftpd/vsftpd-3.0.5.ebuild b/net-ftp/vsftpd/vsftpd-3.0.5-r1.ebuild
index b63d380bf321..707069d713d6 100644
--- a/net-ftp/vsftpd/vsftpd-3.0.5.ebuild
+++ b/net-ftp/vsftpd/vsftpd-3.0.5-r1.ebuild
@@ -31,6 +31,7 @@ src_prepare() {
"${FILESDIR}"/vsftpd-2.3.2-kerberos.patch
"${FILESDIR}"/vsftpd-3.0.2-alpha.patch
"${FILESDIR}"/vsftpd-3.0.3-sparc.patch
+ "${FILESDIR}"/vsftpd-3.0.5-seccomp.patch
)
default
}