diff options
-rw-r--r-- | security/selinux/hooks.c | 2 | ||||
-rw-r--r-- | security/selinux/include/objsec.h | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 65642be91644..dd1fbea37b78 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -259,7 +259,7 @@ static int __inode_security_revalidate(struct inode *inode, | |||
259 | 259 | ||
260 | might_sleep_if(may_sleep); | 260 | might_sleep_if(may_sleep); |
261 | 261 | ||
262 | if (isec->initialized == LABEL_INVALID) { | 262 | if (isec->initialized != LABEL_INITIALIZED) { |
263 | if (!may_sleep) | 263 | if (!may_sleep) |
264 | return -ECHILD; | 264 | return -ECHILD; |
265 | 265 | ||
diff --git a/security/selinux/include/objsec.h b/security/selinux/include/objsec.h index a2ae05414ba1..c21e135460a5 100644 --- a/security/selinux/include/objsec.h +++ b/security/selinux/include/objsec.h | |||
@@ -38,9 +38,8 @@ struct task_security_struct { | |||
38 | }; | 38 | }; |
39 | 39 | ||
40 | enum label_initialized { | 40 | enum label_initialized { |
41 | LABEL_MISSING, /* not initialized */ | 41 | LABEL_INVALID, /* invalid or not initialized */ |
42 | LABEL_INITIALIZED, /* inizialized */ | 42 | LABEL_INITIALIZED /* initialized */ |
43 | LABEL_INVALID /* invalid */ | ||
44 | }; | 43 | }; |
45 | 44 | ||
46 | struct inode_security_struct { | 45 | struct inode_security_struct { |