aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 34427384605d..be68992a28cb 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -4066,6 +4066,8 @@ static int sock_has_perm(struct task_struct *task, struct sock *sk, u32 perms)
4066 struct lsm_network_audit net = {0,}; 4066 struct lsm_network_audit net = {0,};
4067 u32 tsid = task_sid(task); 4067 u32 tsid = task_sid(task);
4068 4068
4069 if (!sksec)
4070 return -EFAULT;
4069 if (sksec->sid == SECINITSID_KERNEL) 4071 if (sksec->sid == SECINITSID_KERNEL)
4070 return 0; 4072 return 0;
4071 4073