source: branches/fc11-dev/server/common/patches/openafs-delta-linux26-defer-cred-changing-20090511.patch @ 1189

Last change on this file since 1189 was 1189, checked in by mitchb, 13 years ago
Apply OpenAFS delta linux26-defer-cred-changing-20090511 The OpenAFS newsletter claims we need this on Fedora 11, and it will be present in the upcoming 1.4.11 release.
File size: 588 bytes
RevLine 
[1189]1--- openafs-1.4.10/src/afs/LINUX/osi_cred.c.orig        2009-06-12 02:03:13.000000000 -0400
2+++ openafs-1.4.10/src/afs/LINUX/osi_cred.c     2009-06-12 02:03:16.000000000 -0400
3@@ -104,6 +104,12 @@
4 #if defined(STRUCT_TASK_HAS_CRED)
5     struct cred *new_creds;
6 
7+    /* If our current task doesn't have identical real and effective
8+     * credentials, commit_cred won't let us change them, so we just
9+     * bail here.
10+     */
11+    if (current->cred != current->real_cred)
12+        return;
13     new_creds = prepare_creds();
14     new_creds->fsuid = cr->cr_uid;
15     new_creds->uid = cr->cr_ruid;
Note: See TracBrowser for help on using the repository browser.