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
19e7b8d2
Commit
19e7b8d2
authored
Sep 07, 2013
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFS: Clean up nfs_parse_security_flavors()
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
74c98811
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
fs/nfs/super.c
fs/nfs/super.c
+13
-12
No files found.
fs/nfs/super.c
View file @
19e7b8d2
...
...
@@ -1032,49 +1032,50 @@ static int nfs_parse_security_flavors(char *value,
struct
nfs_parsed_mount_data
*
mnt
)
{
substring_t
args
[
MAX_OPT_ARGS
];
rpc_authflavor_t
pseudoflavor
;
dfprintk
(
MOUNT
,
"NFS: parsing sec=%s option
\n
"
,
value
);
switch
(
match_token
(
value
,
nfs_secflavor_tokens
,
args
))
{
case
Opt_sec_none
:
mnt
->
auth_flavors
[
0
]
=
RPC_AUTH_NULL
;
pseudoflavor
=
RPC_AUTH_NULL
;
break
;
case
Opt_sec_sys
:
mnt
->
auth_flavors
[
0
]
=
RPC_AUTH_UNIX
;
pseudoflavor
=
RPC_AUTH_UNIX
;
break
;
case
Opt_sec_krb5
:
mnt
->
auth_flavors
[
0
]
=
RPC_AUTH_GSS_KRB5
;
pseudoflavor
=
RPC_AUTH_GSS_KRB5
;
break
;
case
Opt_sec_krb5i
:
mnt
->
auth_flavors
[
0
]
=
RPC_AUTH_GSS_KRB5I
;
pseudoflavor
=
RPC_AUTH_GSS_KRB5I
;
break
;
case
Opt_sec_krb5p
:
mnt
->
auth_flavors
[
0
]
=
RPC_AUTH_GSS_KRB5P
;
pseudoflavor
=
RPC_AUTH_GSS_KRB5P
;
break
;
case
Opt_sec_lkey
:
mnt
->
auth_flavors
[
0
]
=
RPC_AUTH_GSS_LKEY
;
pseudoflavor
=
RPC_AUTH_GSS_LKEY
;
break
;
case
Opt_sec_lkeyi
:
mnt
->
auth_flavors
[
0
]
=
RPC_AUTH_GSS_LKEYI
;
pseudoflavor
=
RPC_AUTH_GSS_LKEYI
;
break
;
case
Opt_sec_lkeyp
:
mnt
->
auth_flavors
[
0
]
=
RPC_AUTH_GSS_LKEYP
;
pseudoflavor
=
RPC_AUTH_GSS_LKEYP
;
break
;
case
Opt_sec_spkm
:
mnt
->
auth_flavors
[
0
]
=
RPC_AUTH_GSS_SPKM
;
pseudoflavor
=
RPC_AUTH_GSS_SPKM
;
break
;
case
Opt_sec_spkmi
:
mnt
->
auth_flavors
[
0
]
=
RPC_AUTH_GSS_SPKMI
;
pseudoflavor
=
RPC_AUTH_GSS_SPKMI
;
break
;
case
Opt_sec_spkmp
:
mnt
->
auth_flavors
[
0
]
=
RPC_AUTH_GSS_SPKMP
;
pseudoflavor
=
RPC_AUTH_GSS_SPKMP
;
break
;
default:
return
0
;
}
mnt
->
flags
|=
NFS_MOUNT_SECFLAVOUR
;
mnt
->
auth_flavor_len
=
1
;
nfs_set_auth_parsed_mount_data
(
mnt
,
pseudoflavor
)
;
return
1
;
}
...
...
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