Bug 1590541
Summary: | chrooted vsftpd child processes are not killed by "service vsftpd stop" | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Richard D Alloway <ralloway> | ||||
Component: | vsftpd | Assignee: | Ondřej Lysoněk <olysonek> | ||||
Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE Security Team <qe-baseos-security> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.5 | ||||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-06-13 12:17:41 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Richard D Alloway
2018-06-12 19:57:18 UTC
Created attachment 1450642 [details]
Patch redefines __pids_pidsof() to catch chroot'd processes
Attached is a patch for the source RPM which redefines the __pids_pidof() function from /etc/rc.d/init.d/functions locally within SOURCES/vsftpd.init to catch chroot'd procs. This redefinition would work in any init script for processes which have chroot'd processes. -Rich Alloway (Rogue Wave) I don't think that doing this is wise. We shouldn't just kill all FTP sessions whenever vsftpd is stopped - in the worst case, they can be in the middle of a file transfer. Also, the vsftpd service is restarted when vsftpd is upgraded (just like any service following the guildelines). I don't think we should just kill off all FTP sessions when vsftpd is upgraded. I think that killing FTP sessions should be an explicit choice of the admin. FWIW, this behaviour is not specific to vsftpd. For example, if you stop sshd, existing ssh sessions will continue to run. |