diff options
Diffstat (limited to 'meta-networking/recipes-daemons/vsftpd/files/change-secure_chroot_dir.patch')
-rw-r--r-- | meta-networking/recipes-daemons/vsftpd/files/change-secure_chroot_dir.patch | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/meta-networking/recipes-daemons/vsftpd/files/change-secure_chroot_dir.patch b/meta-networking/recipes-daemons/vsftpd/files/change-secure_chroot_dir.patch index 5f2860e846..b69de1d1c3 100644 --- a/meta-networking/recipes-daemons/vsftpd/files/change-secure_chroot_dir.patch +++ b/meta-networking/recipes-daemons/vsftpd/files/change-secure_chroot_dir.patch | |||
@@ -1,20 +1,25 @@ | |||
1 | vsftpd: change default value of secure_chroot_dir | 1 | From ce2be5d4967445828d5ae9d9462cfaa78ae03c73 Mon Sep 17 00:00:00 2001 |
2 | From: Ming Liu <ming.liu@windriver.com> | ||
3 | Date: Wed, 18 Sep 2013 09:44:20 +0800 | ||
4 | Subject: [PATCH] vsftpd: change default value of secure_chroot_dir | ||
2 | 5 | ||
3 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
4 | 7 | ||
5 | Change secure_chroot_dir pointing to a volatile directory. | 8 | Change secure_chroot_dir pointing to a volatile directory. |
6 | 9 | ||
7 | Signed-off-by: Ming Liu <ming.liu@windriver.com> | 10 | Signed-off-by: Ming Liu <ming.liu@windriver.com> |
11 | |||
8 | --- | 12 | --- |
9 | INSTALL | 6 +++--- | 13 | INSTALL | 6 +++--- |
10 | tunables.c | 2 +- | 14 | tunables.c | 2 +- |
11 | vsftpd.conf.5 | 2 +- | 15 | vsftpd.conf.5 | 2 +- |
12 | 3 files changed, 5 insertions(+), 5 deletions(-) | 16 | 3 files changed, 5 insertions(+), 5 deletions(-) |
13 | 17 | ||
14 | diff -urpN a/INSTALL b/INSTALL | 18 | diff --git a/INSTALL b/INSTALL |
15 | --- a/INSTALL 2013-09-13 10:23:57.504972397 +0800 | 19 | index 4f811aa..427122a 100644 |
16 | +++ b/INSTALL 2013-09-13 10:25:25.664971779 +0800 | 20 | --- a/INSTALL |
17 | @@ -27,11 +27,11 @@ user in case it does not already exist. | 21 | +++ b/INSTALL |
22 | @@ -27,11 +27,11 @@ user in case it does not already exist. e.g.: | ||
18 | [root@localhost root]# useradd nobody | 23 | [root@localhost root]# useradd nobody |
19 | useradd: user nobody exists | 24 | useradd: user nobody exists |
20 | 25 | ||
@@ -29,9 +34,10 @@ diff -urpN a/INSTALL b/INSTALL | |||
29 | 34 | ||
30 | 2c) For anonymous FTP, you will need the user "ftp" to exist, and have a | 35 | 2c) For anonymous FTP, you will need the user "ftp" to exist, and have a |
31 | valid home directory (which is NOT owned or writable by the user "ftp"). | 36 | valid home directory (which is NOT owned or writable by the user "ftp"). |
32 | diff -urpN a/tunables.c b/tunables.c | 37 | diff --git a/tunables.c b/tunables.c |
33 | --- a/tunables.c 2013-09-13 10:26:29.554972817 +0800 | 38 | index 284a10d..8c63c3f 100644 |
34 | +++ b/tunables.c 2013-09-13 10:27:18.104972210 +0800 | 39 | --- a/tunables.c |
40 | +++ b/tunables.c | ||
35 | @@ -254,7 +254,7 @@ tunables_load_defaults() | 41 | @@ -254,7 +254,7 @@ tunables_load_defaults() |
36 | /* -rw------- */ | 42 | /* -rw------- */ |
37 | tunable_chown_upload_mode = 0600; | 43 | tunable_chown_upload_mode = 0600; |
@@ -41,10 +47,11 @@ diff -urpN a/tunables.c b/tunables.c | |||
41 | install_str_setting("ftp", &tunable_ftp_username); | 47 | install_str_setting("ftp", &tunable_ftp_username); |
42 | install_str_setting("root", &tunable_chown_username); | 48 | install_str_setting("root", &tunable_chown_username); |
43 | install_str_setting("/var/log/xferlog", &tunable_xferlog_file); | 49 | install_str_setting("/var/log/xferlog", &tunable_xferlog_file); |
44 | diff -urpN a/vsftpd.conf.5 b/vsftpd.conf.5 | 50 | diff --git a/vsftpd.conf.5 b/vsftpd.conf.5 |
45 | --- a/vsftpd.conf.5 2013-09-13 10:09:33.774972462 +0800 | 51 | index fcc6022..e4ffdee 100644 |
46 | +++ b/vsftpd.conf.5 2013-09-13 10:10:41.914971989 +0800 | 52 | --- a/vsftpd.conf.5 |
47 | @@ -969,7 +969,7 @@ This option should be the name of a dire | 53 | +++ b/vsftpd.conf.5 |
54 | @@ -969,7 +969,7 @@ This option should be the name of a directory which is empty. Also, the | ||
48 | directory should not be writable by the ftp user. This directory is used | 55 | directory should not be writable by the ftp user. This directory is used |
49 | as a secure chroot() jail at times vsftpd does not require filesystem access. | 56 | as a secure chroot() jail at times vsftpd does not require filesystem access. |
50 | 57 | ||