Going through this doc, was wondering if there is a way to restrict unix socket creation using Kubernetes Network policies.
Kubernetes network policies can’t restrict unix socket creation, they can only be useful for managing the traffic flow in between the pods. If you want to restrict new unix sockets from getting created you need to configure the SElinux parameter in the security context field of the kubernetes manifest file. This feature is only available in the recent releases of kubernetes 1.25 and above. Follow this official documentation for more information