ss allows to change source of information using various environment variables:
Variable PROC_ROOT allows to change root of all the /proc/ hierarchy.
Variable TCPDIAG_FILE prescribes to open a file instead of requesting kernel to dump information about TCP sockets.
This option is used mainly to investigate bug reports, when dumps of files usually found in /proc/ are recevied by e-mail.