Re: [PATCH] Root squash option for quotas

From: Jan Kara (jack@atrey.karlin.mff.cuni.cz)
Date: Thu May 25 2000 - 11:22:38 EST


> (Please cc: me, I'm not subscribed.)
>
> It's possible to use quotas also for root account using "rsquash" mount option
> (actually parsed by quotaon). It seems that some tweaks are still needed:
> correcting the id check and properly ignoring the mount option. The patch
> should be obvious. It's against 2.2.15, but seems to apply to 2.3.99 with
> little fuzz.
>
  There's a problem with current design which you probably didn't noticed.
The problem is, that setting grace times for root has special meaning - it
sets time limits used for other users. So with current desing there is no
way how to set grace time for root and not change time limits for users.
  I fixed this by adding new quotactl for setting those values -- it is in
set of patches changing also format of quotafile which I'll be able to merge
in 2.5. But for now I would leave it in its current state.

...
>
> Note that this shell doesn't have CAP_SYS_RESOURCE, otherwise write would
> succeed. It's unfortunate that the capability to setup quotas and the
> capability to override them are the same. The former is needed for boot
> sequence, the latter can be removed from production systems.
  Yes, I'm thinking about changing the capability needed for setting of
quotas to CAP_SYS_ADMIN.

                                                Bye Honza.

-
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/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:14 EST