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/hooks.c | |
parent | aa8e712cee93d520e96a2ca8e3a20f807c937e3f (diff) | |
download | linux-next-e5a5ca96a42ca7eee19cf8694377308771350950.tar.gz |
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/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index d78f9e2f6df0..337fb325e5cc 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -5407,7 +5407,7 @@ static int selinux_nlmsg_perm(struct sock *sk, struct sk_buff *skb) sk->sk_protocol, nlh->nlmsg_type, secclass_map[sksec->sclass - 1].name, task_pid_nr(current), current->comm); - if (!is_enforcing(&selinux_state) || + if (!enforcing_enabled(&selinux_state) || security_get_allow_unknown(&selinux_state)) err = 0; } @@ -6937,7 +6937,7 @@ static __init int selinux_init(void) printk(KERN_INFO "SELinux: Initializing.\n"); memset(&selinux_state, 0, sizeof(selinux_state)); - set_enforcing(&selinux_state, selinux_enforcing_boot); + enforcing_set(&selinux_state, selinux_enforcing_boot); selinux_state.checkreqprot = selinux_checkreqprot_boot; selinux_ss_init(&selinux_state.ss); |