]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: track cm_rootUser connections
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 3 Dec 2011 22:46:41 +0000 (17:46 -0500)
committerDerrick Brashear <shadow@dementix.org>
Sun, 26 Feb 2012 06:38:09 +0000 (22:38 -0800)
Add CM_UCELLFLAG_ROOTUSER flag to cm_ucell_t for the purpose
of tracking which connections belong to the cm_rootUser.

Reviewed-on: http://gerrit.openafs.org/6207
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
(cherry picked from commit 2495d02951fa1a9f6f48cc2a5bc7750f310dae75)

Change-Id: Ie0014200d9e3ed3832bf875a9788aad1f55f29ec
Reviewed-on: http://gerrit.openafs.org/6813
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/WINNT/afsd/cm_user.c
src/WINNT/afsd/cm_user.h

index 508f86eaef00c30bd9a9b156a0d2da542709470f..0b573b3cbdbdf11dc737cddb153c60db277498ae 100644 (file)
@@ -68,6 +68,8 @@ cm_ucell_t *cm_GetUCell(cm_user_t *userp, cm_cell_t *cellp)
             ucp->iterator = 1;
         userp->cellInfop = ucp;
         ucp->cellp = cellp;
+        if (userp == cm_rootUserp)
+            ucp->flags |= CM_UCELLFLAG_ROOTUSER;
     }
 
     return ucp;
index 40184fd8cb704a8ecb922c13b3ac3f419592de10..a980474554f8ab2bac7723a67a6703fd0c260a55 100644 (file)
@@ -37,10 +37,11 @@ typedef struct cm_ucell {
 #endif
 } cm_ucell_t;
 
-#define CM_UCELLFLAG_HASTIX    1       /* has Kerberos tickets */
-#define CM_UCELLFLAG_RXKAD     2       /* an rxkad connection */
-#define CM_UCELLFLAG_BADTIX    4       /* tickets are bad or expired */
-#define CM_UCELLFLAG_RXGK       8       /* an rxgk connection */
+#define CM_UCELLFLAG_HASTIX      1     /* has Kerberos tickets */
+#define CM_UCELLFLAG_RXKAD       2     /* an rxkad connection */
+#define CM_UCELLFLAG_BADTIX      4     /* tickets are bad or expired */
+#define CM_UCELLFLAG_RXGK         8     /* an rxgk connection */
+#define CM_UCELLFLAG_ROOTUSER  0x10     /* cm_rootUser connection */
 
 typedef struct cm_user {
     unsigned long refCount;             /* ref count - cm_userLock */