I would like to know if it exists a version of an X server wich allow
unix socket and TCP to be disable in the kernel?

Or do I need to recompile a X Server like X.org with specific options,
libraries, ...???

Do I need to rewrite some of the libraries to remove any reference of
sockets usage?

Where should I start looking?

Thanks