diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2015-12-24 11:09:40 -0500 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-12-24 11:09:40 -0500 |
commit | 5d226df4edfa0eb1e689e7ac2741cf261ff7cbf1 (patch) | |
tree | 3fe85bb21b799df769d9079687c874ba1569a4fa /tools/testing | |
parent | 6f3be9f562e3027c77bc4482ccf2cea8600a7f74 (diff) | |
download | blackbird-obmc-linux-5d226df4edfa0eb1e689e7ac2741cf261ff7cbf1.tar.gz blackbird-obmc-linux-5d226df4edfa0eb1e689e7ac2741cf261ff7cbf1.zip |
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 'tools/testing')
0 files changed, 0 insertions, 0 deletions