selinux: rename the {is,set}_enforcing() functions

Rename is_enforcing() to enforcing_enabled() and
enforcing_set() to set_enforcing().

Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
Paul Moore
2018-03-01 17:38:30 -05:00
parent aa8e712cee
commit e5a5ca96a4
6 changed files with 14 additions and 14 deletions

View File

@@ -752,7 +752,7 @@ out:
kfree(n);
kfree(t);
if (!is_enforcing(state))
if (!enforcing_enabled(state))
return 0;
return -EPERM;
}
@@ -1596,7 +1596,7 @@ out:
kfree(s);
kfree(t);
kfree(n);
if (!is_enforcing(state))
if (!enforcing_enabled(state))
return 0;
return -EACCES;
}
@@ -1907,7 +1907,7 @@ static inline int convert_context_handle_invalid_context(
char *s;
u32 len;
if (is_enforcing(state))
if (enforcing_enabled(state))
return -EINVAL;
if (!context_struct_to_string(policydb, context, &s, &len)) {