Add networking permissions control of hap apps
The appspawn fork a hap process and set a flag(0 or 1) to the libnetsys_client,
Judge whether the flag in libnetsys_client is 1 in the socket() and name_from_dns_search() interface,
Do not create a AF_INET or AF_INET6 socket or query DNS if the flag is 0
Signed-off-by: Nmaosiping <maosiping@huawei.com>
Showing
想要评论请 注册 或 登录