Don't count root session keyrings against quota
authorSimon Wilkinson <sxw@your-file-system.com>
Wed, 17 Mar 2010 11:56:12 +0000 (11:56 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 21 Mar 2010 16:02:59 +0000 (09:02 -0700)
commitc4537f0442ac7ecbf8c946de45004992e17d535f
treecf5ce9dc4dac0536992745c8436234225ef48d76
parente2134caed1812d523dc7c07a5307fd3ec53485f5
Don't count root session keyrings against quota

AFS PAM modules can call setpag() as root, regardless of the UID
being authenticated. This leads to the session keyring being created
using roots quota - on some systems (RHEL5) this quota is both small,
and of a fixed size.

Modify our keyring allocation code so that when a keyring is created
by root, we don't do any quota checks.

Change-Id: I2ee151ec1166a78475047bffd2c1d31f45e8dbdf
Reported-by: Rainer Toebbicke <rtb@pclella.cern.ch>
Reviewed-on: http://gerrit.openafs.org/1577
Tested-by: Rainer Toebbicke <rtb@pclella.cern.ch>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/LINUX/osi_groups.c