Signed-off-by: Michael Benedict <michaelbt@live.com>
goto out;
}
+#ifdef CONFIG_KNOX_NCM
/* START_OF_KNOX_NPA */
/** The function is used to check if the ncm feature is enabled or not; if enabled then it calls knox_collect_socket_data function in ncm.c to record all the socket data; **/
static void knox_collect_metadata(struct socket *sock) {
}
}
/* END_OF_KNOX_NPA */
+#endif
/*
* The peer socket should always be NULL (or else). When we call this
if (sock_flag(sk, SOCK_LINGER) &&
!(current->flags & PF_EXITING))
timeout = sk->sk_lingertime;
+#ifdef CONFIG_KNOX_NCM
/* START_OF_KNOX_NPA */
knox_collect_metadata(sock);
/* END_OF_KNOX_NPA */
+#endif
sock->sk = NULL;
sk->sk_prot->close(sk, timeout);
}