diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-14 15:39:59 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-01-30 02:05:28 -0500 |
commit | e8914c65f7f8d4e8701b8e78a12b714872ea0402 (patch) | |
tree | 54e0834fce6e8b834ad400e010e76215e7eb76e4 /net/sunrpc/auth.c | |
parent | a6eaf8bdf9308b51ec84e358915fc65400029519 (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.c | 18 |
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 | } |
54 | EXPORT_SYMBOL(rpcauth_register); | 54 | EXPORT_SYMBOL_GPL(rpcauth_register); |
55 | 55 | ||
56 | int | 56 | int |
57 | rpcauth_unregister(const struct rpc_authops *ops) | 57 | rpcauth_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 | } |
72 | EXPORT_SYMBOL(rpcauth_unregister); | 72 | EXPORT_SYMBOL_GPL(rpcauth_unregister); |
73 | 73 | ||
74 | struct rpc_auth * | 74 | struct rpc_auth * |
75 | rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt) | 75 | rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt) |
@@ -104,7 +104,7 @@ rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt) | |||
104 | out: | 104 | out: |
105 | return auth; | 105 | return auth; |
106 | } | 106 | } |
107 | EXPORT_SYMBOL(rpcauth_create); | 107 | EXPORT_SYMBOL_GPL(rpcauth_create); |
108 | 108 | ||
109 | void | 109 | void |
110 | rpcauth_release(struct rpc_auth *auth) | 110 | rpcauth_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 | } |
157 | EXPORT_SYMBOL(rpcauth_init_credcache); | 157 | EXPORT_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 | } |
220 | EXPORT_SYMBOL(rpcauth_destroy_credcache); | 220 | EXPORT_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: | |||
337 | out: | 337 | out: |
338 | return cred; | 338 | return cred; |
339 | } | 339 | } |
340 | EXPORT_SYMBOL(rpcauth_lookup_credcache); | 340 | EXPORT_SYMBOL_GPL(rpcauth_lookup_credcache); |
341 | 341 | ||
342 | struct rpc_cred * | 342 | struct rpc_cred * |
343 | rpcauth_lookupcred(struct rpc_auth *auth, int flags) | 343 | rpcauth_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 | } |
359 | EXPORT_SYMBOL(rpcauth_lookupcred); | 359 | EXPORT_SYMBOL_GPL(rpcauth_lookupcred); |
360 | 360 | ||
361 | void | 361 | void |
362 | rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, | 362 | rpcauth_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 | } |
376 | EXPORT_SYMBOL(rpcauth_init_cred); | 376 | EXPORT_SYMBOL_GPL(rpcauth_init_cred); |
377 | 377 | ||
378 | struct rpc_cred * | 378 | struct rpc_cred * |
379 | rpcauth_bindcred(struct rpc_task *task) | 379 | rpcauth_bindcred(struct rpc_task *task) |
@@ -442,7 +442,7 @@ need_lock: | |||
442 | out_destroy: | 442 | out_destroy: |
443 | cred->cr_ops->crdestroy(cred); | 443 | cred->cr_ops->crdestroy(cred); |
444 | } | 444 | } |
445 | EXPORT_SYMBOL(put_rpccred); | 445 | EXPORT_SYMBOL_GPL(put_rpccred); |
446 | 446 | ||
447 | void | 447 | void |
448 | rpcauth_unbindcred(struct rpc_task *task) | 448 | rpcauth_unbindcred(struct rpc_task *task) |