aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/auth.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-14 15:39:59 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-01-30 02:05:28 -0500
commite8914c65f7f8d4e8701b8e78a12b714872ea0402 (patch)
tree54e0834fce6e8b834ad400e010e76215e7eb76e4 /net/sunrpc/auth.c
parenta6eaf8bdf9308b51ec84e358915fc65400029519 (diff)
SUNRPC: Restrict sunrpc client exports
The sunrpc client exports are not meant to be part of any official kernel API: they can change at the drop of a hat. Mark them as internal functions using EXPORT_SYMBOL_GPL. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/auth.c')
-rw-r--r--net/sunrpc/auth.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c
index 1025a0ea9bb7..eca941ce298b 100644
--- a/net/sunrpc/auth.c
+++ b/net/sunrpc/auth.c
@@ -51,7 +51,7 @@ rpcauth_register(const struct rpc_authops *ops)
51 spin_unlock(&rpc_authflavor_lock); 51 spin_unlock(&rpc_authflavor_lock);
52 return ret; 52 return ret;
53} 53}
54EXPORT_SYMBOL(rpcauth_register); 54EXPORT_SYMBOL_GPL(rpcauth_register);
55 55
56int 56int
57rpcauth_unregister(const struct rpc_authops *ops) 57rpcauth_unregister(const struct rpc_authops *ops)
@@ -69,7 +69,7 @@ rpcauth_unregister(const struct rpc_authops *ops)
69 spin_unlock(&rpc_authflavor_lock); 69 spin_unlock(&rpc_authflavor_lock);
70 return ret; 70 return ret;
71} 71}
72EXPORT_SYMBOL(rpcauth_unregister); 72EXPORT_SYMBOL_GPL(rpcauth_unregister);
73 73
74struct rpc_auth * 74struct rpc_auth *
75rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt) 75rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt)
@@ -104,7 +104,7 @@ rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt)
104out: 104out:
105 return auth; 105 return auth;
106} 106}
107EXPORT_SYMBOL(rpcauth_create); 107EXPORT_SYMBOL_GPL(rpcauth_create);
108 108
109void 109void
110rpcauth_release(struct rpc_auth *auth) 110rpcauth_release(struct rpc_auth *auth)
@@ -154,7 +154,7 @@ rpcauth_init_credcache(struct rpc_auth *auth)
154 auth->au_credcache = new; 154 auth->au_credcache = new;
155 return 0; 155 return 0;
156} 156}
157EXPORT_SYMBOL(rpcauth_init_credcache); 157EXPORT_SYMBOL_GPL(rpcauth_init_credcache);
158 158
159/* 159/*
160 * Destroy a list of credentials 160 * Destroy a list of credentials
@@ -217,7 +217,7 @@ rpcauth_destroy_credcache(struct rpc_auth *auth)
217 kfree(cache); 217 kfree(cache);
218 } 218 }
219} 219}
220EXPORT_SYMBOL(rpcauth_destroy_credcache); 220EXPORT_SYMBOL_GPL(rpcauth_destroy_credcache);
221 221
222/* 222/*
223 * Remove stale credentials. Avoid sleeping inside the loop. 223 * Remove stale credentials. Avoid sleeping inside the loop.
@@ -337,7 +337,7 @@ found:
337out: 337out:
338 return cred; 338 return cred;
339} 339}
340EXPORT_SYMBOL(rpcauth_lookup_credcache); 340EXPORT_SYMBOL_GPL(rpcauth_lookup_credcache);
341 341
342struct rpc_cred * 342struct rpc_cred *
343rpcauth_lookupcred(struct rpc_auth *auth, int flags) 343rpcauth_lookupcred(struct rpc_auth *auth, int flags)
@@ -356,7 +356,7 @@ rpcauth_lookupcred(struct rpc_auth *auth, int flags)
356 put_group_info(acred.group_info); 356 put_group_info(acred.group_info);
357 return ret; 357 return ret;
358} 358}
359EXPORT_SYMBOL(rpcauth_lookupcred); 359EXPORT_SYMBOL_GPL(rpcauth_lookupcred);
360 360
361void 361void
362rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, 362rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred,
@@ -373,7 +373,7 @@ rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred,
373#endif 373#endif
374 cred->cr_uid = acred->uid; 374 cred->cr_uid = acred->uid;
375} 375}
376EXPORT_SYMBOL(rpcauth_init_cred); 376EXPORT_SYMBOL_GPL(rpcauth_init_cred);
377 377
378struct rpc_cred * 378struct rpc_cred *
379rpcauth_bindcred(struct rpc_task *task) 379rpcauth_bindcred(struct rpc_task *task)
@@ -442,7 +442,7 @@ need_lock:
442out_destroy: 442out_destroy:
443 cred->cr_ops->crdestroy(cred); 443 cred->cr_ops->crdestroy(cred);
444} 444}
445EXPORT_SYMBOL(put_rpccred); 445EXPORT_SYMBOL_GPL(put_rpccred);
446 446
447void 447void
448rpcauth_unbindcred(struct rpc_task *task) 448rpcauth_unbindcred(struct rpc_task *task)