Re: Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-24 Thread n0g0013
On 23.03-12:23, Boris Kochergin wrote: [ ... ] yes, that's great but you may be surprised to learn that it doesn't actually solve your problem. i think (and without looking specifically at the impact my even be confident enough to say definately) if you get a groups list it will only be

Re: Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-23 Thread ttw+bsd
On 23.03-00:39, David Schultz wrote: [ ... ] There's already a kern.ngroups sysctl, but there are many places where `ngroups' needs to be used in preference to NGROUPS in the kernel. In userland, sysconf(_SC_NGROUPS_MAX) needs to be used in preference to NGROUPS_MAX. you will also note that,

Re: Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-23 Thread ttw+bsd
On 22.03-22:33, Boris Kochergin wrote: Ahoy. I got bitten by this today--a system I administer for someone had users in more than 16 groups, so I had to bump the value, recompile the kernel, and reboot. It seems desirable to (at the very least) make this a read-only tunable that can be set

Re: Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-23 Thread Boris Kochergin
ttw+...@cobbled.net wrote: On 22.03-22:33, Boris Kochergin wrote: Ahoy. I got bitten by this today--a system I administer for someone had users in more than 16 groups, so I had to bump the value, recompile the kernel, and reboot. It seems desirable to (at the very least) make this a

Re: Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-23 Thread n0g0013
On 23.03-10:20, Boris Kochergin wrote: [ ... ] Well, bumping it does get rid of messages like: Mar 22 20:44:26 hydrogen sshd[96152]: getgrouplist: groups list too small Mar 22 20:44:26 hydrogen sshd[96152]: fatal: initgroups: [user]: Invalid argument yes, that's great but you may be

Re: Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-23 Thread Boris Kochergin
n0g0013 wrote: On 23.03-10:20, Boris Kochergin wrote: [ ... ] Well, bumping it does get rid of messages like: Mar 22 20:44:26 hydrogen sshd[96152]: getgrouplist: groups list too small Mar 22 20:44:26 hydrogen sshd[96152]: fatal: initgroups: [user]: Invalid argument yes, that's great

Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-22 Thread Boris Kochergin
Ahoy. I got bitten by this today--a system I administer for someone had users in more than 16 groups, so I had to bump the value, recompile the kernel, and reboot. It seems desirable to (at the very least) make this a read-only tunable that can be set using /boot/loader.conf, so as to avoid

Re: Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-22 Thread David Schultz
On Sun, Mar 22, 2009, Boris Kochergin wrote: Ahoy. I got bitten by this today--a system I administer for someone had users in more than 16 groups, so I had to bump the value, recompile the kernel, and reboot. It seems desirable to (at the very least) make this a read-only tunable that can