diff options
Diffstat (limited to 'security/selinux/hooks.c')
-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 1b500b4c78a7..1b73a3f966c8 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; |