]> git.michaelhowe.org Git - packages/o/openafs.git/commit
SOLARIS: Use kcred instead of afs_osi_cred
authorAndrew Deason <adeason@sinenomine.net>
Thu, 2 Feb 2012 23:35:52 +0000 (17:35 -0600)
committerDerrick Brashear <shadow@dementix.org>
Wed, 8 Feb 2012 21:51:12 +0000 (13:51 -0800)
commit72d2ef7fa25a09c8f71b57c4969549eff20ce69e
treef7a5a64a5041de9e47ca139b5bd56d60084f6404
parentf0e648bfa30958f47f1e7bbe656ebe0f4556a52a
SOLARIS: Use kcred instead of afs_osi_cred

For many vfs ops to the cache, we currently pass &afs_osi_cred for our
credentials, which is a mostly zeroed-out credential structure. In
some modern versions of Solaris (Solaris 11), at least some parts of
this structure need to not be NULL (cr_zone), or we will panic.

The Solaris kernel provides a 'kcred' credentials structure for the
purpose of using "kernel" credentials for i/o. So just use that
instead for Solaris 8 and beyond, since kcred has existed at least
since Solaris 8.

Reviewed-on: http://gerrit.openafs.org/6669
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit dc6beb3ea29a64bcf59807fd451a573aa54e1122)

Change-Id: I6fd0ce4a890c2e6d9377cad39f47303aa1687a6b
Reviewed-on: http://gerrit.openafs.org/6682
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/afs/SOLARIS/osi_file.c
src/afs/afs_osi.c