Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486092 - net-ftp/vsftpd-3.0.2-r1 - syslog_enable=YES => 500 OOPS: priv_sock_get_cmd
Summary: net-ftp/vsftpd-3.0.2-r1 - syslog_enable=YES => 500 OOPS: priv_sock_get_cmd
Status: RESOLVED DUPLICATE of bug 443898
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-26 17:43 UTC by Jarry
Modified: 2013-10-03 17:12 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jarry 2013-09-26 17:43:04 UTC
When "syslog_enable=YES" in /etc/vsftpd/vsftpd.conf, ftp-client can not connect to ftp-server. All he gets is:

$ ftp FQDN
Connected to FQDN (IP).
500 OOPS: priv_sock_get_cmd

Without "syslog_enable=YES" everything works as expected (but no ftp-logs sent to syslog, of course). This bug is present in the latest stable (3.0.2-r1) as well as in ~amd64 (3.0.2-r2).

Reproducible: Always
Comment 1 Jarry 2013-09-26 17:56:19 UTC
Temporary solution: to add "seccomp_sandbox=NO" to /etc/vsftpd/vsftpd.conf.
I'm not sure what it does (undocumented in vsftpd.conf manpage) but it works.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2013-10-03 07:26:37 UTC

*** This bug has been marked as a duplicate of bug 443898 ***
Comment 3 Jarry 2013-10-03 16:06:57 UTC
I am NOT sure this is duplicate of 443898 bug. 

Bug-report 443898 simply says this error happens and does not state any conditions (I suppose with default configuration). Maybe it was so in net-ftp/vsftpd-3.0.0

But in this bug ftp-client gets error *only* if vsftpd-server has syslog_enable=YES in vsftpd.conf (which is not default), and the rest of config-parameters remain in default. 

I made test with vsftpd.conf modified this way (actually default settings):

syslog_enable=NO
seccomp_sandbox=YES

No problem was detected, vsftpd works as expected.

Another test (again, no problem detected):

syslog_enable=NO
seccomp_sandbox=NO

Temporary fix as suggested previously also works without problem:

syslog_enable=YES
seccomp_sandbox=NO

So the only config-combination that causes problem is:

syslog_enable=YES
seccomp_sandbox=YES

Bug-report 443898 does not says anything about this (it actually makes no comment on syslog_enable), while this bug-report discovered conditions which must be met for this bug to occur...
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2013-10-03 17:12:20 UTC
We will not track the seccomp_sandbox problem in two separate bugs.