Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
svcauth.c File Reference
#include <linux/types.h>
#include <linux/module.h>
#include <linux/sunrpc/types.h>
#include <linux/sunrpc/xdr.h>
#include <linux/sunrpc/svcsock.h>
#include <linux/sunrpc/svcauth.h>
#include <linux/err.h>
#include <linux/hash.h>

Go to the source code of this file.

Macros

#define RPCDBG_FACILITY   RPCDBG_AUTH
 
#define DN_HASHBITS   6
 
#define DN_HASHMAX   (1<<DN_HASHBITS)
 

Functions

int svc_authenticate (struct svc_rqst *rqstp, __be32 *authp)
 
 EXPORT_SYMBOL_GPL (svc_authenticate)
 
int svc_set_client (struct svc_rqst *rqstp)
 
 EXPORT_SYMBOL_GPL (svc_set_client)
 
int svc_authorise (struct svc_rqst *rqstp)
 
int svc_auth_register (rpc_authflavor_t flavor, struct auth_ops *aops)
 
 EXPORT_SYMBOL_GPL (svc_auth_register)
 
void svc_auth_unregister (rpc_authflavor_t flavor)
 
 EXPORT_SYMBOL_GPL (svc_auth_unregister)
 
void auth_domain_put (struct auth_domain *dom)
 
 EXPORT_SYMBOL_GPL (auth_domain_put)
 
struct auth_domain * auth_domain_lookup (char *name, struct auth_domain *new)
 
 EXPORT_SYMBOL_GPL (auth_domain_lookup)
 
struct auth_domain * auth_domain_find (char *name)
 
 EXPORT_SYMBOL_GPL (auth_domain_find)
 

Variables

struct auth_ops svcauth_null
 
struct auth_ops svcauth_unix
 

Macro Definition Documentation

#define DN_HASHBITS   6

Definition at line 119 of file svcauth.c.

#define DN_HASHMAX   (1<<DN_HASHBITS)

Definition at line 120 of file svcauth.c.

#define RPCDBG_FACILITY   RPCDBG_AUTH

Definition at line 21 of file svcauth.c.

Function Documentation

struct auth_domain* auth_domain_find ( char name)
read

Definition at line 161 of file svcauth.c.

struct auth_domain* auth_domain_lookup ( char name,
struct auth_domain *  new 
)
read

Definition at line 137 of file svcauth.c.

void auth_domain_put ( struct auth_domain *  dom)

Definition at line 126 of file svcauth.c.

EXPORT_SYMBOL_GPL ( svc_authenticate  )
EXPORT_SYMBOL_GPL ( svc_set_client  )
EXPORT_SYMBOL_GPL ( svc_auth_register  )
EXPORT_SYMBOL_GPL ( svc_auth_unregister  )
EXPORT_SYMBOL_GPL ( auth_domain_put  )
EXPORT_SYMBOL_GPL ( auth_domain_lookup  )
EXPORT_SYMBOL_GPL ( auth_domain_find  )
int svc_auth_register ( rpc_authflavor_t  flavor,
struct auth_ops *  aops 
)

Definition at line 87 of file svcauth.c.

void svc_auth_unregister ( rpc_authflavor_t  flavor)

Definition at line 101 of file svcauth.c.

int svc_authenticate ( struct svc_rqst rqstp,
__be32 authp 
)

Definition at line 37 of file svcauth.c.

int svc_authorise ( struct svc_rqst rqstp)

Definition at line 72 of file svcauth.c.

int svc_set_client ( struct svc_rqst rqstp)

Definition at line 62 of file svcauth.c.

Variable Documentation

struct auth_ops svcauth_null
Initial value:
= {
.name = "null",
.owner = THIS_MODULE,
.flavour = RPC_AUTH_NULL,
.accept = svcauth_null_accept,
.release = svcauth_null_release,
.set_client = svcauth_unix_set_client,
}

Definition at line 781 of file svcauth_unix.c.

struct auth_ops svcauth_unix
Initial value:
= {
.name = "unix",
.owner = THIS_MODULE,
.flavour = RPC_AUTH_UNIX,
.accept = svcauth_unix_accept,
.release = svcauth_unix_release,
.domain_release = svcauth_unix_domain_release,
.set_client = svcauth_unix_set_client,
}

Definition at line 862 of file svcauth_unix.c.