diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 9651bccae270..7ce683259357 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; |
@@ -4186,7 +4191,7 @@ static int selinux_task_movememory(struct task_struct *p) | |||
4186 | PROCESS__SETSCHED, NULL); | 4191 | PROCESS__SETSCHED, NULL); |
4187 | } | 4192 | } |
4188 | 4193 | ||
4189 | static int selinux_task_kill(struct task_struct *p, struct siginfo *info, | 4194 | static int selinux_task_kill(struct task_struct *p, struct kernel_siginfo *info, |
4190 | int sig, const struct cred *cred) | 4195 | int sig, const struct cred *cred) |
4191 | { | 4196 | { |
4192 | u32 secid; | 4197 | u32 secid; |