Skip to content
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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment