aboutsummaryrefslogtreecommitdiff
path: root/kernel/bpf/arraymap.c
diff options
context:
space:
mode:
authorStephen Smalley <[email protected]>2019-09-04 10:32:48 -0400
committerPaul Moore <[email protected]>2019-09-04 18:41:12 -0400
commit169ce0c081cd85f78388bb6c1638c1ad7b81bde7 (patch)
tree7683ec34dd5af93084fe9ecf1effaf0ab73f67bd /kernel/bpf/arraymap.c
parent116f21bb967fcef1fa360fe591a2947481788020 (diff)
selinux: fix residual uses of current_security() for the SELinux blob
We need to use selinux_cred() to fetch the SELinux cred blob instead of directly using current->security or current_security(). There were a couple of lingering uses of current_security() in the SELinux code that were apparently missed during the earlier conversions. IIUC, this would only manifest as a bug if multiple security modules including SELinux are enabled and SELinux is not first in the lsm order. After this change, there appear to be no other users of current_security() in-tree; perhaps we should remove it altogether. Fixes: bbd3662a8348 ("Infrastructure management of the cred security blob") Signed-off-by: Stephen Smalley <[email protected]> Acked-by: Casey Schaufler <[email protected]> Reviewed-by: James Morris <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions