summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-vsftpd-allow-sysinfo-in-the-seccomp-sandbox.patch45
-rw-r--r--meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb1
2 files changed, 46 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-vsftpd-allow-sysinfo-in-the-seccomp-sandbox.patch b/meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-vsftpd-allow-sysinfo-in-the-seccomp-sandbox.patch
new file mode 100644
index 0000000000..7accbbc241
--- /dev/null
+++ b/meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-vsftpd-allow-sysinfo-in-the-seccomp-sandbox.patch
@@ -0,0 +1,45 @@
1From 37cc924363515c8c309944c455bcbba7ddcc8eda Mon Sep 17 00:00:00 2001
2From: Mingli Yu <Mingli.Yu@windriver.com>
3Date: Tue, 6 Sep 2016 17:17:44 +0800
4Subject: [PATCH] vsftpd: allow sysinfo() in the seccomp sandbox
5
6Upstream-Status: Pending
7
8* Allow sysinfo() in the seccomp sandbox otherwise
9 comes below OOPS: priv_sock_get_cmd as the syscall
10 sysinfo() not allowed
11
12tnftp 192.168.1.1
13Connected to 192.168.1.1.
14220 (vsFTPd 3.0.3)
15Name (192.168.1.1:root): anonymous
16331 Please specify the password.
17Password:
18230 Login successful.
19Remote system type is UNIX.
20Using binary mode to transfer files.
21ftp> prompt
22Interactive mode off.
23ftp> mget small*
24OOPS: priv_sock_get_cmd
25
26Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
27---
28 seccompsandbox.c | 1 +
29 1 file changed, 1 insertion(+)
30
31diff --git a/seccompsandbox.c b/seccompsandbox.c
32index 2c350a9..67d9ca5 100644
33--- a/seccompsandbox.c
34+++ b/seccompsandbox.c
35@@ -409,6 +409,7 @@ seccomp_sandbox_setup_postlogin(const struct vsf_session* p_sess)
36 allow_nr(__NR_getcwd);
37 allow_nr(__NR_chdir);
38 allow_nr(__NR_getdents);
39+ allow_nr(__NR_sysinfo);
40 /* Misc */
41 allow_nr(__NR_umask);
42
43--
442.8.1
45
diff --git a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb
index e398799fe9..3eaaa30b62 100644
--- a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb
+++ b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb
@@ -18,6 +18,7 @@ SRC_URI = "https://security.appspot.com/downloads/vsftpd-${PV}.tar.gz \
18 file://volatiles.99_vsftpd \ 18 file://volatiles.99_vsftpd \
19 file://vsftpd.service \ 19 file://vsftpd.service \
20 file://vsftpd-2.1.0-filter.patch \ 20 file://vsftpd-2.1.0-filter.patch \
21 file://0001-vsftpd-allow-sysinfo-in-the-seccomp-sandbox.patch \
21" 22"
22 23
23LIC_FILES_CHKSUM = "file://COPYING;md5=a6067ad950b28336613aed9dd47b1271 \ 24LIC_FILES_CHKSUM = "file://COPYING;md5=a6067ad950b28336613aed9dd47b1271 \