diff options
author | Paul Moore <paul@paul-moore.com> | 2018-03-01 17:38:30 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-03-02 14:18:55 -0500 |
commit | e5a5ca96a42ca7eee19cf8694377308771350950 (patch) | |
tree | 84e47c0215d6e2e6e29df3077c55d8bec7c634ba /security/selinux/ss/services.c | |
parent | aa8e712cee93d520e96a2ca8e3a20f807c937e3f (diff) | |
download | linux-stable-e5a5ca96a42ca7eee19cf8694377308771350950.tar.gz linux-stable-e5a5ca96a42ca7eee19cf8694377308771350950.tar.bz2 linux-stable-e5a5ca96a42ca7eee19cf8694377308771350950.zip |
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>
Diffstat (limited to 'security/selinux/ss/services.c')
-rw-r--r-- | security/selinux/ss/services.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 3698352213d7..4785ca552d51 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c @@ -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)) { |