Commit 83370b31 authored by Tianyue Ren's avatar Tianyue Ren Committed by Paul Moore
Browse files

selinux: fix error initialization in inode_doinit_with_dentry()

Mark the inode security label as invalid if we cannot find
a dentry so that we will retry later rather than marking it
initialized with the unlabeled SID.

Fixes: 9287aed2

 ("selinux: Convert isec->lock into a spinlock")
Signed-off-by: default avatarTianyue Ren <rentianyue@kylinos.cn>
[PM: minor comment tweaks]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 3650b228
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment