aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOndrej Mosnacek <omosnace@redhat.com>2020-01-07 14:31:53 +0100
committerPaul Moore <paul@paul-moore.com>2020-01-10 15:19:39 -0500
commit65cddd50980be8c9c27ad7518a0dc812eccb25d5 (patch)
treedc4e6e963f7656f323f0c23bf3ffe0f51d1078c7 /tools
parentselinux: make default_noexec read-only after init (diff)
downloadlinux-dev-65cddd50980be8c9c27ad7518a0dc812eccb25d5.tar.xz
linux-dev-65cddd50980be8c9c27ad7518a0dc812eccb25d5.zip
selinux: treat atomic flags more carefully
The disabled/enforcing/initialized flags are all accessed concurrently by threads so use the appropriate accessors that ensure atomicity and document that it is expected. Use smp_load/acquire...() helpers (with memory barriers) for the initialized flag, since it gates access to the rest of the state structures. Note that the disabled flag is currently not used for anything other than avoiding double disable, but it will be used for bailing out of hooks once security_delete_hooks() is removed. Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> Acked-by: Stephen Smalley <sds@tycho.nsa.gov> Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: James Morris <jamorris@linux.microsoft.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions