diff options
author | Tianyue Ren <rentianyue@kylinos.cn> | 2020-10-09 09:36:30 +0800 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-10-27 22:14:25 -0400 |
commit | 83370b31a915493231e5b9addc72e4bef69f8d31 (patch) | |
tree | 669e2c9601fe63e6ea71c37057dc2680d67b23a3 /crypto | |
parent | 3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff) | |
download | lwn-83370b31a915493231e5b9addc72e4bef69f8d31.tar.gz lwn-83370b31a915493231e5b9addc72e4bef69f8d31.zip |
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: 9287aed2ad1f ("selinux: Convert isec->lock into a spinlock")
Signed-off-by: Tianyue Ren <rentianyue@kylinos.cn>
[PM: minor comment tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions