mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
selinux: simply inode label states to INVALID and INITIALIZED
There really is no need for LABEL_MISSING as we really only care if the inode's label is INVALID or INITIALIZED. Also adjust the revalidate code to reload the label whenever the label is not INITIALIZED so we are less sensitive to label state in the future. Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
899134f2f6
commit
4b57d6bcd9
2 changed files with 3 additions and 4 deletions
|
@ -259,7 +259,7 @@ static int __inode_security_revalidate(struct inode *inode,
|
|||
|
||||
might_sleep_if(may_sleep);
|
||||
|
||||
if (isec->initialized == LABEL_INVALID) {
|
||||
if (isec->initialized != LABEL_INITIALIZED) {
|
||||
if (!may_sleep)
|
||||
return -ECHILD;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue