diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_cred.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_cred.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/xfs/linux-2.6/xfs_cred.h b/fs/xfs/linux-2.6/xfs_cred.h index 8c022cd0ad67..55bddf3b6091 100644 --- a/fs/xfs/linux-2.6/xfs_cred.h +++ b/fs/xfs/linux-2.6/xfs_cred.h | |||
@@ -25,12 +25,4 @@ | |||
25 | */ | 25 | */ |
26 | typedef const struct cred cred_t; | 26 | typedef const struct cred cred_t; |
27 | 27 | ||
28 | extern cred_t *sys_cred; | ||
29 | |||
30 | /* this is a hack.. (assumes sys_cred is the only cred_t in the system) */ | ||
31 | static inline int capable_cred(cred_t *cr, int cid) | ||
32 | { | ||
33 | return (cr == sys_cred) ? 1 : capable(cid); | ||
34 | } | ||
35 | |||
36 | #endif /* __XFS_CRED_H__ */ | 28 | #endif /* __XFS_CRED_H__ */ |