Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a2832a8f
Commit
a2832a8f
authored
Mar 10, 2005
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RPC: Clean up of rpcauth_lookupcred() and rpcauth_bindcred()
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
b62d37e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
net/sunrpc/auth.c
net/sunrpc/auth.c
+14
-14
No files found.
net/sunrpc/auth.c
View file @
a2832a8f
...
...
@@ -241,18 +241,18 @@ rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred,
struct
rpc_cred
*
rpcauth_lookupcred
(
struct
rpc_auth
*
auth
,
int
taskflags
)
{
struct
auth_cred
acred
;
struct
auth_cred
acred
=
{
.
uid
=
current
->
fsuid
,
.
gid
=
current
->
fsgid
,
.
group_info
=
current
->
group_info
,
};
struct
rpc_cred
*
ret
;
get_group_info
(
current
->
group_info
);
acred
.
uid
=
current
->
fsuid
;
acred
.
gid
=
current
->
fsgid
;
acred
.
group_info
=
current
->
group_info
;
dprintk
(
"RPC: looking up %s cred
\n
"
,
auth
->
au_ops
->
au_name
);
get_group_info
(
acred
.
group_info
);
ret
=
auth
->
au_ops
->
lookup_cred
(
auth
,
&
acred
,
taskflags
);
put_group_info
(
current
->
group_info
);
put_group_info
(
acred
.
group_info
);
return
ret
;
}
...
...
@@ -260,22 +260,22 @@ struct rpc_cred *
rpcauth_bindcred
(
struct
rpc_task
*
task
)
{
struct
rpc_auth
*
auth
=
task
->
tk_auth
;
struct
auth_cred
acred
;
struct
auth_cred
acred
=
{
.
uid
=
current
->
fsuid
,
.
gid
=
current
->
fsgid
,
.
group_info
=
current
->
group_info
,
};
struct
rpc_cred
*
ret
;
get_group_info
(
current
->
group_info
);
acred
.
uid
=
current
->
fsuid
;
acred
.
gid
=
current
->
fsgid
;
acred
.
group_info
=
current
->
group_info
;
dprintk
(
"RPC: %4d looking up %s cred
\n
"
,
task
->
tk_pid
,
task
->
tk_auth
->
au_ops
->
au_name
);
get_group_info
(
acred
.
group_info
);
ret
=
auth
->
au_ops
->
lookup_cred
(
auth
,
&
acred
,
task
->
tk_flags
);
if
(
!
IS_ERR
(
ret
))
task
->
tk_msg
.
rpc_cred
=
ret
;
else
task
->
tk_status
=
PTR_ERR
(
ret
);
put_group_info
(
current
->
group_info
);
put_group_info
(
acred
.
group_info
);
return
ret
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment