diff options
Diffstat (limited to 'include/linux/sunrpc/svcauth.h')
| -rw-r--r-- | include/linux/sunrpc/svcauth.h | 17 | 
1 files changed, 11 insertions, 6 deletions
| diff --git a/include/linux/sunrpc/svcauth.h b/include/linux/sunrpc/svcauth.h index d39dbdc7b10f..25d333c1b571 100644 --- a/include/linux/sunrpc/svcauth.h +++ b/include/linux/sunrpc/svcauth.h | |||
| @@ -108,10 +108,15 @@ struct auth_ops { | |||
| 108 | #define SVC_NEGATIVE 4 | 108 | #define SVC_NEGATIVE 4 | 
| 109 | #define SVC_OK 5 | 109 | #define SVC_OK 5 | 
| 110 | #define SVC_DROP 6 | 110 | #define SVC_DROP 6 | 
| 111 | #define SVC_DENIED 7 | 111 | #define SVC_CLOSE 7 /* Like SVC_DROP, but request is definitely | 
| 112 | #define SVC_PENDING 8 | 112 | * lost so if there is a tcp connection, it | 
| 113 | #define SVC_COMPLETE 9 | 113 | * should be closed | 
| 114 | */ | ||
| 115 | #define SVC_DENIED 8 | ||
| 116 | #define SVC_PENDING 9 | ||
| 117 | #define SVC_COMPLETE 10 | ||
| 114 | 118 | ||
| 119 | struct svc_xprt; | ||
| 115 | 120 | ||
| 116 | extern int svc_authenticate(struct svc_rqst *rqstp, __be32 *authp); | 121 | extern int svc_authenticate(struct svc_rqst *rqstp, __be32 *authp); | 
| 117 | extern int svc_authorise(struct svc_rqst *rqstp); | 122 | extern int svc_authorise(struct svc_rqst *rqstp); | 
| @@ -121,13 +126,13 @@ extern void svc_auth_unregister(rpc_authflavor_t flavor); | |||
| 121 | 126 | ||
| 122 | extern struct auth_domain *unix_domain_find(char *name); | 127 | extern struct auth_domain *unix_domain_find(char *name); | 
| 123 | extern void auth_domain_put(struct auth_domain *item); | 128 | extern void auth_domain_put(struct auth_domain *item); | 
| 124 | extern int auth_unix_add_addr(struct in6_addr *addr, struct auth_domain *dom); | 129 | extern int auth_unix_add_addr(struct net *net, struct in6_addr *addr, struct auth_domain *dom); | 
| 125 | extern struct auth_domain *auth_domain_lookup(char *name, struct auth_domain *new); | 130 | extern struct auth_domain *auth_domain_lookup(char *name, struct auth_domain *new); | 
| 126 | extern struct auth_domain *auth_domain_find(char *name); | 131 | extern struct auth_domain *auth_domain_find(char *name); | 
| 127 | extern struct auth_domain *auth_unix_lookup(struct in6_addr *addr); | 132 | extern struct auth_domain *auth_unix_lookup(struct net *net, struct in6_addr *addr); | 
| 128 | extern int auth_unix_forget_old(struct auth_domain *dom); | 133 | extern int auth_unix_forget_old(struct auth_domain *dom); | 
| 129 | extern void svcauth_unix_purge(void); | 134 | extern void svcauth_unix_purge(void); | 
| 130 | extern void svcauth_unix_info_release(void *); | 135 | extern void svcauth_unix_info_release(struct svc_xprt *xpt); | 
| 131 | extern int svcauth_unix_set_client(struct svc_rqst *rqstp); | 136 | extern int svcauth_unix_set_client(struct svc_rqst *rqstp); | 
| 132 | 137 | ||
| 133 | static inline unsigned long hash_str(char *name, int bits) | 138 | static inline unsigned long hash_str(char *name, int bits) | 
