kernels/linux-2.4.0/net/sunrpc/auth_null.c
/*
 * Create NULL creds for current process
 */
Create NULL creds for current process
Create NULL creds for current process
static struct rpc_cred *
nul_create_cred(int flags)
{
	struct rpc_cred	*cred;
	if (!(cred = (struct rpc_cred *) rpc_allocate(flags, sizeof(*cred))))
		return NULL;
	cred->cr_count = 0;
	cred->cr_flags = RPCAUTH_CRED_UPTODATE;
	cred->cr_uid = current->uid;
	return cred;
}
static struct rpc_cred * nul_create_cred ( int flags ) { struct rpc_cred * cred ; if ( ! ( cred = ( struct rpc_cred * ) rpc_allocate ( flags , sizeof ( * cred ) ) ) ) return NULL ; cred -> cr_count = 0 ; cred -> cr_flags = RPCAUTH_CRED_UPTODATE ; cred -> cr_uid = current -> uid ; return cred ; }
Create NULL creds for current process
Create NULL creds for current process