]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/xfs/linux-2.6/xfs_cred.h
CRED: Separate task security context from task_struct
[net-next-2.6.git] / fs / xfs / linux-2.6 / xfs_cred.h
index 293043a5573a201094e0cfe0f9245ba889ff3906..8c022cd0ad672dc9f68687c54cb305dc5f846a19 100644 (file)
 /*
  * Credentials
  */
-typedef struct cred {
-       /* EMPTY */
-} cred_t;
+typedef const struct cred cred_t;
 
-extern struct cred *sys_cred;
+extern cred_t *sys_cred;
 
 /* this is a hack.. (assumes sys_cred is the only cred_t in the system) */
 static inline int capable_cred(cred_t *cr, int cid)