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>
ucp->iterator = 1;
userp->cellInfop = ucp;
ucp->cellp = cellp;
+ if (userp == cm_rootUserp)
+ ucp->flags |= CM_UCELLFLAG_ROOTUSER;
}
return ucp;
#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 */