Your clients deserve better security than detecting root mediocrity by finding 32-char long Unix socket names. Are you serious? Either don't bother at all, or harden your security from its root rather than deploying pathetic security practices.