diff options
Diffstat (limited to 'net/sunrpc/auth_generic.c')
-rw-r--r-- | net/sunrpc/auth_generic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/sunrpc/auth_generic.c b/net/sunrpc/auth_generic.c index e010a015d996..1426ec3d0a53 100644 --- a/net/sunrpc/auth_generic.c +++ b/net/sunrpc/auth_generic.c | |||
@@ -41,15 +41,17 @@ EXPORT_SYMBOL_GPL(rpc_lookup_cred); | |||
41 | /* | 41 | /* |
42 | * Public call interface for looking up machine creds. | 42 | * Public call interface for looking up machine creds. |
43 | */ | 43 | */ |
44 | struct rpc_cred *rpc_lookup_machine_cred(void) | 44 | struct rpc_cred *rpc_lookup_machine_cred(const char *service_name) |
45 | { | 45 | { |
46 | struct auth_cred acred = { | 46 | struct auth_cred acred = { |
47 | .uid = RPC_MACHINE_CRED_USERID, | 47 | .uid = RPC_MACHINE_CRED_USERID, |
48 | .gid = RPC_MACHINE_CRED_GROUPID, | 48 | .gid = RPC_MACHINE_CRED_GROUPID, |
49 | .principal = service_name, | ||
49 | .machine_cred = 1, | 50 | .machine_cred = 1, |
50 | }; | 51 | }; |
51 | 52 | ||
52 | dprintk("RPC: looking up machine cred\n"); | 53 | dprintk("RPC: looking up machine cred for service %s\n", |
54 | service_name); | ||
53 | return generic_auth.au_ops->lookup_cred(&generic_auth, &acred, 0); | 55 | return generic_auth.au_ops->lookup_cred(&generic_auth, &acred, 0); |
54 | } | 56 | } |
55 | EXPORT_SYMBOL_GPL(rpc_lookup_machine_cred); | 57 | EXPORT_SYMBOL_GPL(rpc_lookup_machine_cred); |