The following commit has been merged in the master branch:
commit 7c6f94b365169cd643cbe03a23d14b2e35d429af
Author: Ben Kaduk <[email protected]>
Date: Mon Mar 22 22:35:51 2010 -0400
Catch up to dynamically-sized cr_groups in FBSD80
In FreeBSD 8.0 and later, (struct ucred)->cr_groups is a pointer
to a dynamically-allocated array, and NGROUPS is now 1024 by default
(tuneable at boot).
Don't put a gid_t[NGROUPS] on the stack for the FBSD80_ENV case.
Also avoid keeping a function-local ucred structure (in
afs_osi_proc2cred()), by bypassing that function entirely
(though this accesses the process credentials directly, which may
require locking; thread credentials accesses can be safely done
lock-free). Add an osi_Panic() to ensure that it stays that way.
Don't pretend that we have a useful afs_osi_cred to export.
Don't blindly overwrite NGROUPS past cr_groups.
Change-Id: I76295164a24bddf2782ab2fa662acd0e1b4855d6
Reviewed-on: http://gerrit.openafs.org/1665
Reviewed-by: Derrick Brashear <[email protected]>
Tested-by: Derrick Brashear <[email protected]>
src/afs/FBSD/osi_file.c | 2 ++
src/afs/FBSD/osi_groups.c | 16 ++++++++++++++--
src/afs/afs_osi_gcpags.c | 3 +++
src/afs/afs_pioctl.c | 2 +-
src/afs/afs_user.c | 4 ++++
5 files changed, 24 insertions(+), 3 deletions(-)
--
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs