!70 Newip socket SELinux对象角色未标记的问题修复

Merge pull request !70 from liangbotong/master
This commit is contained in:
openharmony_ci
2023-04-10 06:25:57 +00:00
committed by Gitee
+7
View File
@@ -1074,6 +1074,13 @@ int _tcp_nip_conn_request(struct request_sock_ops *rsk_ops,
af_ops->init_req(req, sk, skb);
/* Based on the security context of the socket and packet,
* this function calculates the security context of the connection
* and checks whether establishing a TCP connection is permitted.
*/
if (security_inet_conn_request(sk, skb, req))
goto drop_and_free;
if (!isn)
isn = af_ops->init_seq(skb);