diff options
| -rw-r--r-- | security/selinux/hooks.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index ad9a9b8e9979..18b98b5e1e3c 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
| @@ -1508,6 +1508,11 @@ static int selinux_genfs_get_sid(struct dentry *dentry, | |||
| 1508 | } | 1508 | } |
| 1509 | rc = security_genfs_sid(&selinux_state, sb->s_type->name, | 1509 | rc = security_genfs_sid(&selinux_state, sb->s_type->name, |
| 1510 | path, tclass, sid); | 1510 | path, tclass, sid); |
| 1511 | if (rc == -ENOENT) { | ||
| 1512 | /* No match in policy, mark as unlabeled. */ | ||
| 1513 | *sid = SECINITSID_UNLABELED; | ||
| 1514 | rc = 0; | ||
| 1515 | } | ||
| 1511 | } | 1516 | } |
| 1512 | free_page((unsigned long)buffer); | 1517 | free_page((unsigned long)buffer); |
| 1513 | return rc; | 1518 | return rc; |
