Description of problem: Need of various extra operations upon file send/receive/rename. This is an extension path proposal, not a bug report. Submitted here, because upstream does not answer. Version-Release number of selected component (if applicable): 2.0.4-1.2 Additional info: The attached patch implements a plugin feature. A plugin .so library is called before and after a file is sent/received/deleted/renamed or a directory is created/deleted/renamed. It is particularly useful to perform some extra permission checking, statistics, active file processing, etc. See file PLUGINS after apply patch for a usage description.
Created attachment 134123 [details] Patch to imlement plugins
Thanks for patch, I'll append it, but it could be earliest in fedora core 7.
Many thanks. If you do so, I will suggest to create a package vsftpd-devel with the following files: /usr/include/vsftpd/plugins.h /usr/share/doc/vstpd-devel-x.y.z/COPYING /usr/share/doc/vstpd-devel-x.y.z/PLUGINS to allow easy plugin development.
... by looking at the development packages, it seems it will NOT be included in Fedora 7 ... Are there some plans to really include it ?
Hi, sorry but this plugins could be implemented in Fedora 9 and later after testing version. Upstream doesn't answer a long time so we have to make review, test package and a lot of tests. Sorry for this long process.
Yes, upstream site seems abandoned. This is a pity because the product is good. I hope I'm wrong, ot that someone else will make it live again. Anyway, I'm running FC6 for now and ported this patch to the FC6 version (2.0.5- 10): I'm using it daily (in a prod server) and it did not need real update since FC6 early days. When you need the patch for 2.0.5-10, just ask here ! Thanks for your interest
Will functions that are called using this plugin be able to access files out of the chroot? (e.g. /bin/sh )
No. They are called directly. Plugin library is loaded dynamically (dlopen), plugin function addresses are latched, then called when needed, thus being executed in the same context as the server process. No fork/exec is performed.
Created attachment 324485 [details] Patch to implement plugins (against vsftpd-2.0.7-1.fc10.src.rpm) Applicable as is to vsftpd-2.0.7-1.fc10.src.rpm after all other patches.
Created attachment 372593 [details] Patch to implement plugins (against vsftpd-2.2.0-5) This version of the patch fixes compilation problems on 64-bit architectures
Upstream communicates over one year again. I've sent the patch to Chris Evans aprox. half a year ago. I don't plan to add this patch independently of upstream. Jiri
Upstream has obtained this patch therefore I don't see any reason to keep the bug opened in accordance to comment 11.