diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2020-01-17 14:15:14 +0100 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-02-10 16:49:01 +0100 |
commit | 4b36cb773a8153417a080f8025d522322f915aea (patch) | |
tree | a7a24544c4b50c91f43dde124e711b76e2b6c4d6 /security/selinux/ss/services.c | |
parent | Linux 5.6-rc1 (diff) | |
download | linux-4b36cb773a8153417a080f8025d522322f915aea.tar.xz linux-4b36cb773a8153417a080f8025d522322f915aea.zip |
selinux: move status variables out of selinux_ss
It fits more naturally in selinux_state, since it reflects also global
state (the enforcing and policyload fields).
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Reviewed-by: Stephen Smalley <sds@tycho.nsa.gov>
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 | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 216ce602a2b5..5cf491768142 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c @@ -46,7 +46,6 @@ #include <linux/in.h> #include <linux/sched.h> #include <linux/audit.h> -#include <linux/mutex.h> #include <linux/vmalloc.h> #include <net/netlabel.h> @@ -81,7 +80,6 @@ static struct selinux_ss selinux_ss; void selinux_ss_init(struct selinux_ss **ss) { rwlock_init(&selinux_ss.policy_rwlock); - mutex_init(&selinux_ss.status_lock); *ss = &selinux_ss; } |