[OpenAFS-devel] linux keyrings, PAGs and KEY_ALLOC_IN_QUOTA

Rainer Toebbicke rtb@pclella.cern.ch
Tue, 16 Mar 2010 14:32:35 +0100


Derrick Brashear schrieb:
> On Tue, Mar 16, 2010 at 9:01 AM, Rainer Toebbicke <rtb@pclella.cern.ch> wrote:
>> In 1.4.11, under Linux >= 2.6.18, the setpag() routine allocates a new
>> session keyring and afs pag with the KEY_ALLOC_IN_QUOTA flag.
> 
> 1.4.11 is of course not of much interest now; but...
> 
>> Hence I suggest to change this to use KEY_ALLOC_NOT_IN_QUOTA for root, and
>> KEY_ALLOC_IN_QUOTA for others, for the new session keyring.
> 
> a3812f21
> 
> For the next 1.4.x release we can pull it up.
>

Is that a change id? I did not find it.

Mind you, for 1.4.x the code is hardly more than

not_in_quota = (current->fsuid == 0) ? KEY_ALLOC_NOT_IN_QUOTA : 
KEY_ALLOC_IN_QUOTA;

however the "master" (1.5.x) has the same problem!

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rainer Toebbicke
European Laboratory for Particle Physics(CERN) - Geneva, Switzerland
Phone: +41 22 767 8985       Fax: +41 22 767 7155