Messages in this thread | | | Date | Sat, 31 Jul 1999 14:07:11 +0100 (GMT) | From | Riley Williams <> | Subject | Re: RFC: Dynamic group limit |
| |
Hi Mattias.
>> If you are talking about dynamic sizing of the number of maximum >> groups per user what do you do if you resize it smaller but >> there are already structures that contain more than your new >> size? IOW, say the existing ngroups_max is 64 and you have a >> couple of users logged in that have 50, 10, and 27 groups in >> their groups_struct. What would happen if you resized >> ngroups_max to 32?
> This is a good question, I see three two to tackle this:
> 1. Lower the limit and just give EFAULT for all new setgroups() > calls.
> 2. Do not allow the limits for the kernel/ngroup_max paramter to > be set lower than the maximum number of groups i any task.
3. Do not allow this limit to be lowered.
> Both has problem with the fact that an application can have been > asking for the max and that max has changed :-(...
> I personaly wote for the second approch, but I do not think that > this parameter should be changed too often. The main purpose for > it that I can think of for the moment is a default (but runtime > changeable) limit of 32 groups until enough programs has been > tested/fixed for more than 32 groups.
I would personally vote for the third approach.
Best wishes from Riley.
+----------------------------------------------------------------------+ | There is something frustrating about the quality and speed of Linux | | development, ie., the quality is too high and the speed is too high, | | in other words, I can implement this XXXX feature, but I bet someone | | else has already done so and is just about to release their patch. | +----------------------------------------------------------------------+ * ftp://ftp.MemAlpha.cx/pub/rhw/Linux * http://www.MemAlpha.cx/kernel.versions.html
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |