selinux: access policycaps with READ_ONCE/WRITE_ONCE
authorStephen Smalley <stephen.smalley.work@gmail.com>
Thu, 10 Sep 2020 14:28:05 +0000 (10:28 -0400)
committerPaul Moore <paul@paul-moore.com>
Fri, 11 Sep 2020 14:08:51 +0000 (10:08 -0400)
commite8ba53d0023a76ba0f50e6ee3e6288c5442f9d33
tree041eb7d30a3154fc1f9f15d562a9d1e7c3b5d573
parent66ccd2560affc6e653ef7372ea36fb825743d186
selinux: access policycaps with READ_ONCE/WRITE_ONCE

Use READ_ONCE/WRITE_ONCE for all accesses to the
selinux_state.policycaps booleans to prevent compiler
mischief.

Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/include/security.h
security/selinux/ss/services.c