|
@@ -29,7 +29,6 @@ struct unx_cred {
|
|
|
#endif
|
|
|
|
|
|
static struct rpc_auth unix_auth;
|
|
|
-static struct rpc_cred_cache unix_cred_cache;
|
|
|
static const struct rpc_credops unix_credops;
|
|
|
|
|
|
static struct rpc_auth *
|
|
@@ -203,9 +202,14 @@ unx_validate(struct rpc_task *task, __be32 *p)
|
|
|
return p;
|
|
|
}
|
|
|
|
|
|
-void __init rpc_init_authunix(void)
|
|
|
+int __init rpc_init_authunix(void)
|
|
|
{
|
|
|
- spin_lock_init(&unix_cred_cache.lock);
|
|
|
+ return rpcauth_init_credcache(&unix_auth);
|
|
|
+}
|
|
|
+
|
|
|
+void rpc_destroy_authunix(void)
|
|
|
+{
|
|
|
+ rpcauth_destroy_credcache(&unix_auth);
|
|
|
}
|
|
|
|
|
|
const struct rpc_authops authunix_ops = {
|
|
@@ -218,10 +222,6 @@ const struct rpc_authops authunix_ops = {
|
|
|
.crcreate = unx_create_cred,
|
|
|
};
|
|
|
|
|
|
-static
|
|
|
-struct rpc_cred_cache unix_cred_cache = {
|
|
|
-};
|
|
|
-
|
|
|
static
|
|
|
struct rpc_auth unix_auth = {
|
|
|
.au_cslack = UNX_WRITESLACK,
|
|
@@ -229,7 +229,6 @@ struct rpc_auth unix_auth = {
|
|
|
.au_ops = &authunix_ops,
|
|
|
.au_flavor = RPC_AUTH_UNIX,
|
|
|
.au_count = ATOMIC_INIT(0),
|
|
|
- .au_credcache = &unix_cred_cache,
|
|
|
};
|
|
|
|
|
|
static
|