Stuart VanZee wrote:
Hello OpenBSD Misc,

I have been doing some work with chrooting user accounts for
a project, and now I am looking to get syslogd working. I
found out that I need a log socket in the chroot environ
for this to work and the -a option does this fine and works
great!  BUT... now that I have one working, I need to be
able to chroot a whole bunch of these and looking in the
syslogd man page I see:

-a path
        Specify a location where syslogd should place an additional log
        socket.  Up to about 20 additional logging sockets can be speci-
        fied.  The primary use for this is to place additional log sock-
        ets in /dev/log of various chroot filespaces.

The part that worries me is the "Up to about 20" part.  Is
this a hard limit?  Is there a way to extend this?  I am
looking at setting up around 100 user accounts like this but
most of them will only be used a few times a month so I'm
not really worried about resources too awful much.

Currently I am using OpenBSD 4.3

From looking at the source, I'd guess that tweaking /usr/src/usr.sbin/syslogd/syslogd.h and set MAXFUNIX to a larger number than 21 should be pretty straightforward. I'm not in the position to say whether large numbers would be appropriate though, for example by some limitation of poll(2).

/Alexander

Reply via email to