summaryrefslogtreecommitdiff
path: root/security/selinux/include/objsec.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2015-12-24 11:09:40 -0500
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:52:00 +0300
commit99496f4811f5f2bb574dd078cd02ec025bd1ddba (patch)
tree0bf92cb68a9d337cd991aaa54462c4143a784c47 /security/selinux/include/objsec.h
parent0619b8efce135b87330419df704b17b221441158 (diff)
selinux: Revalidate invalid inode security labels
When fetching an inode's security label, check if it is still valid, and try reloading it if it is not. Reloading will fail when we are in RCU context which doesn't allow sleeping, or when we can't find a dentry for the inode. (Reloading happens via iop->getxattr which takes a dentry parameter.) When reloading fails, continue using the old, invalid label. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Acked-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'security/selinux/include/objsec.h')
0 files changed, 0 insertions, 0 deletions