Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22b970371
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22b970371
Commits
19e7b8d2
Commit
19e7b8d2
authored
11 years ago
by
Trond Myklebust
Browse files
Options
Downloads
Patches
Plain Diff
NFS: Clean up nfs_parse_security_flavors()
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
74c98811
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fs/nfs/super.c
+13
-12
13 additions, 12 deletions
fs/nfs/super.c
with
13 additions
and
12 deletions
fs/nfs/super.c
+
13
−
12
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_
flavor
s
[
0
]
=
RPC_AUTH_NULL
;
pseudo
flavor
=
RPC_AUTH_NULL
;
break
;
case
Opt_sec_sys
:
mnt
->
auth_
flavor
s
[
0
]
=
RPC_AUTH_UNIX
;
pseudo
flavor
=
RPC_AUTH_UNIX
;
break
;
case
Opt_sec_krb5
:
mnt
->
auth_
flavor
s
[
0
]
=
RPC_AUTH_GSS_KRB5
;
pseudo
flavor
=
RPC_AUTH_GSS_KRB5
;
break
;
case
Opt_sec_krb5i
:
mnt
->
auth_
flavor
s
[
0
]
=
RPC_AUTH_GSS_KRB5I
;
pseudo
flavor
=
RPC_AUTH_GSS_KRB5I
;
break
;
case
Opt_sec_krb5p
:
mnt
->
auth_
flavor
s
[
0
]
=
RPC_AUTH_GSS_KRB5P
;
pseudo
flavor
=
RPC_AUTH_GSS_KRB5P
;
break
;
case
Opt_sec_lkey
:
mnt
->
auth_
flavor
s
[
0
]
=
RPC_AUTH_GSS_LKEY
;
pseudo
flavor
=
RPC_AUTH_GSS_LKEY
;
break
;
case
Opt_sec_lkeyi
:
mnt
->
auth_
flavor
s
[
0
]
=
RPC_AUTH_GSS_LKEYI
;
pseudo
flavor
=
RPC_AUTH_GSS_LKEYI
;
break
;
case
Opt_sec_lkeyp
:
mnt
->
auth_
flavor
s
[
0
]
=
RPC_AUTH_GSS_LKEYP
;
pseudo
flavor
=
RPC_AUTH_GSS_LKEYP
;
break
;
case
Opt_sec_spkm
:
mnt
->
auth_
flavor
s
[
0
]
=
RPC_AUTH_GSS_SPKM
;
pseudo
flavor
=
RPC_AUTH_GSS_SPKM
;
break
;
case
Opt_sec_spkmi
:
mnt
->
auth_
flavor
s
[
0
]
=
RPC_AUTH_GSS_SPKMI
;
pseudo
flavor
=
RPC_AUTH_GSS_SPKMI
;
break
;
case
Opt_sec_spkmp
:
mnt
->
auth_
flavor
s
[
0
]
=
RPC_AUTH_GSS_SPKMP
;
pseudo
flavor
=
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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment