taskSavane - Tasks: task #2219, users that are in more groups than...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

task #2219: users that are in more groups than the system allows it

Submitted by:  Mathieu Roy <yeupou>
Submitted on:  Sun 11 Sep 2005 07:50:45 AM UTC  
 
Should Start On: Sat 10 Sep 2005 10:00:00 PM UTCShould be Finished on: Sun 10 Sep 2006 10:00:00 PM UTC
Category: BackendStatus: Need Info
Priority: 1 - LaterPlanned Release: 
Assigned to: NoneOpen/Closed: Open
Privacy: PublicFor/By: None

Tue 13 Sep 2005 07:05:42 PM UTC, comment #1:

(details on sv-hackers-public)

Kernel 2.6 from stable + a patch sysconf() implementation in the libc should do (libc from testing works).

useradd uses sysconf()

linux/limits.h is compile-time, hence inaccurate value

ACLs have opposite limits (eg members per group), do not use that :)

Sylvain Beucler <beuc>
Project Administrator
Sun 11 Sep 2005 07:50:45 AM UTC, original submission:

https://mail.gna.org/public/savane-dev/2005-08/msg00043.html

\"I would love to hear about a fourth solution :)\"

For the record:

- solution 1: recompile the kernel -- painy, hard to maintain (recompiling the kernel on each upgrade greatly enhance the risk of having admins not upgrading kernels, and we know the price of that)
- solution 2: using a proxy mecanism -- probably not working for half of the service one would like to provide
- solution 3: using ACL -- some says it\'s not yet working properly, some others says it would not completely resolve the issue. I dont know personally, I never used ACL (or only for a demo). I assume this is not the solution we want.

I have a fourth solution. I just came out of my mind a long time ago. It may not be very practical but:

we could have sv_groups checking the NGROUPS_MAX in /usr/include/linux/limits.h and decide, if for a user it counts something bigger than that, to create a new user, like user1 (or whatever), add this new user to the new groups it should belongs to. That would be transparent on the frontend.
- Apart that we would have to restrict new account names accordingly (not allowing someone to create ada1 if there\'s already ada1.. etc).
- The user would have to be told to use ada1 for ssh connection with X group, not ada. It may be a real pain in the ass.
But that would be working.

But recent Debian news brought me hints about 1st solution: now security is provided for Debian Testing: people just have to use Testing kernel if they are in this particular case -- using testing on a production server may not be very nice, but I think it is possible with apt-get to only using testing for a defined set of packages.
Well, it sounds like solution 1 but it\'s not exactly.
It not uberconvenient, as at some point, you may have a kernel depending on modutils or stuff like that as shipped in Testing. But anyway, it\'s a matter of time and I bet there are not so many servers in this case.

All in all, the probably cleanest solution is still to use ACL, that would work in all case -- but probably the one that would cost the more in development time. My 4th solution is clearly a cheap and dirty workaround.

And intermediate solution would be to implement a restriction on members right: write access on repositories or not, by default set to not.
(not per repository kind, that would be complicated and would somehow restrict usage of the software -- for instance, it would not be helpful with Gna setup). It would means that only users really needing such account would get one. And I guess in plenty of cases, there are members that in fact does not require the write access.
That would not fix the issue, but that would make it less probably.

BTW, I think we\'re near, at Gna, to have someone in more than 32 groups.
I dont know what solution we\'ll pick. It may well be the repackaging possibility. If it\'s just a matter of updating limit.h, should not be a problem to have well maintained packages, and easier than dealing with testing kernel.
But in the past, useradd had also to be patched. Is it still the case?

Mathieu Roy <yeupou>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by beuc (Posted a comment)
  • -unavailable- added by yeupou (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 11 Sep 2005 07:51:02 AM UTCyeupouStatusNone=>Need Info
    Sun 11 Sep 2005 07:50:56 AM UTCyeupouShould be Finished onSat 10 Sep 2005 10:00:00 PM UTC=>Sun 10 Sep 2006 10:00:00 PM UTC
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup