Linux: Use current_creds() if stashed creds fail
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Tue, 9 Feb 2010 19:53:40 +0000 (19:53 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 11 Feb 2010 02:40:03 +0000 (18:40 -0800)
commitbcdb5220e2db2bf0cd22c6316682046425048d87
treef8be4a81524b1126386bfd3740ee28cf3493c264
parent762c8b41edf3bec9dc4dfc7ec972af3a432b2b1a
Linux: Use current_creds() if stashed creds fail

If we can't use our stashed credentials (because SELinux hates us,
most likely), then fall back to trying the processes current credentials
instead of just oopsing.

Change-Id: Ib3676ff66f8400e86cccb97fb207a5f094ceb4ad
Reviewed-on: http://gerrit.openafs.org/1283
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/LINUX/osi_file.c