Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd7223dd authored by Tianyue Ren's avatar Tianyue Ren Committed by Greg Kroah-Hartman
Browse files

selinux: fix error initialization in inode_doinit_with_dentry()



[ Upstream commit 83370b31a915493231e5b9addc72e4bef69f8d31 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f2b081c7
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