diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index d39b59cf8a08..d51bd40a04a8 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -280,7 +280,7 @@ static int sk_alloc_security(struct sock *sk, int family, gfp_t priority) | |||
280 | ssec->sid = SECINITSID_UNLABELED; | 280 | ssec->sid = SECINITSID_UNLABELED; |
281 | sk->sk_security = ssec; | 281 | sk->sk_security = ssec; |
282 | 282 | ||
283 | selinux_netlbl_sk_security_init(ssec, family); | 283 | selinux_netlbl_sk_security_reset(ssec, family); |
284 | 284 | ||
285 | return 0; | 285 | return 0; |
286 | } | 286 | } |
@@ -4139,7 +4139,7 @@ static void selinux_sk_clone_security(const struct sock *sk, struct sock *newsk) | |||
4139 | newssec->peer_sid = ssec->peer_sid; | 4139 | newssec->peer_sid = ssec->peer_sid; |
4140 | newssec->sclass = ssec->sclass; | 4140 | newssec->sclass = ssec->sclass; |
4141 | 4141 | ||
4142 | selinux_netlbl_sk_security_clone(ssec, newssec); | 4142 | selinux_netlbl_sk_security_reset(newssec, newsk->sk_family); |
4143 | } | 4143 | } |
4144 | 4144 | ||
4145 | static void selinux_sk_getsecid(struct sock *sk, u32 *secid) | 4145 | static void selinux_sk_getsecid(struct sock *sk, u32 *secid) |