]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Linux: setpag() may replace credentials
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 19 Jan 2013 03:40:03 +0000 (22:40 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 14 Mar 2013 08:46:32 +0000 (01:46 -0700)
commitb0a10607f90c4097206bc38cb9bd16e842dbda10
tree36669f158bef2333a039f2bb79e7c9f85ff85bbf
parentbf9bcd09e6a54eb40e47c7a6cdc060be43be9495
Linux: setpag() may replace credentials

For recent Linux. setpag() may replace the current process' cred
structure with a new one.  This is not a problem for most callers,
but in the case of processing a SetTokens2 pioctl with the setpag
option, the new credentials should be used to determine the target
for the token.

Reviewed-on: http://gerrit.openafs.org/8924
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit b61eac783e8c092cd4ba9f53a2b5ca7d43e08b1b)

Change-Id: I66b5f171318964ff40fe78be24e75519183c3a82
Reviewed-on: http://gerrit.openafs.org/8948
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Paul Smeddle <paul.smeddle@gmail.com>
Reviewed-by: Ken Dreyer <ktdreyer@ktdreyer.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/afs_pioctl.c