Hello

I have a setup with about 100 chroot'ed SFTP accounts which all have their
separate /dev/log socket inside the chroot so that the OpenSSH SFTP server
can log the FTP commands to it.

That seems too much for rsyslog as I now get the following error message:

 rsyslogd: Out of unix socket name descriptors, ignoring /srv/sftp-xxx/dev/log

I've seen the following line in ./plugins/imuxsock/imuxsock.c

  #define MAXFUNIX    50
  ...
 /* add an additional listen socket. Socket names are added
  * until the array is filled up. It is never reset, only at
  * module unload.
  * TODO: we should change the array to a list so that we
  * can support any number of listen socket names.
  * rgerhards, 2007-12-20
  * added capability to specify hostname for socket -- rgerhards, 2008-08-01
  */
 static rsRetVal
 addLstnSocketName(void __attribute__((unused)) *pVal, uchar *pNewVal)
 {
    ..
       if(nfd < MAXFUNIX) {
        ...
       } else {
           errmsg.LogError(0, NO_ERRCODE, "Out of unix socket name descriptors, 
ignoring %s\n", pNewVal);


Would it be safe to just raise this compile time number to say 150 or would
I run into even nastier problems then?

Maybe the "TODO" point in the above comment could be put on the feature
wishlist for one of the next releases? :-)

Best Regards

-christian-
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to