diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-12-17 10:14:16 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-12-21 11:49:44 -0500 |
commit | da3d76abb2e74c07b1cd620ee5e3b31227846c7c (patch) | |
tree | 17f4296a73de0906026fe7800f65ff67e3c72111 /security/selinux | |
parent | 169d68efb03b728588c209c682f14328eec485c0 (diff) |
selinux: regularize Opt_... names a bit
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/hooks.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 8f2285cb9029..9b350070ed9e 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -458,21 +458,21 @@ enum { | |||
458 | Opt_fscontext = 2, | 458 | Opt_fscontext = 2, |
459 | Opt_defcontext = 3, | 459 | Opt_defcontext = 3, |
460 | Opt_rootcontext = 4, | 460 | Opt_rootcontext = 4, |
461 | Opt_labelsupport = 5, | 461 | Opt_seclabel = 5, |
462 | }; | 462 | }; |
463 | 463 | ||
464 | #define A(s, opt, has_arg) {s, sizeof(s) - 1, opt, has_arg} | 464 | #define A(s, has_arg) {#s, sizeof(#s) - 1, Opt_##s, has_arg} |
465 | static struct { | 465 | static struct { |
466 | const char *name; | 466 | const char *name; |
467 | int len; | 467 | int len; |
468 | int opt; | 468 | int opt; |
469 | bool has_arg; | 469 | bool has_arg; |
470 | } tokens[] = { | 470 | } tokens[] = { |
471 | A("context", Opt_context, true), | 471 | A(context, true), |
472 | A("fscontext", Opt_fscontext, true), | 472 | A(fscontext, true), |
473 | A("defcontext", Opt_defcontext, true), | 473 | A(defcontext, true), |
474 | A("rootcontext", Opt_rootcontext, true), | 474 | A(rootcontext, true), |
475 | A("seclabel", Opt_labelsupport, false), | 475 | A(seclabel, false), |
476 | }; | 476 | }; |
477 | #undef A | 477 | #undef A |
478 | 478 | ||
@@ -1010,7 +1010,7 @@ static int selinux_add_opt(int token, const char *s, void **mnt_opts) | |||
1010 | { | 1010 | { |
1011 | struct selinux_mnt_opts *opts = *mnt_opts; | 1011 | struct selinux_mnt_opts *opts = *mnt_opts; |
1012 | 1012 | ||
1013 | if (token == Opt_labelsupport) /* eaten and completely ignored */ | 1013 | if (token == Opt_seclabel) /* eaten and completely ignored */ |
1014 | return 0; | 1014 | return 0; |
1015 | 1015 | ||
1016 | if (!opts) { | 1016 | if (!opts) { |