$d_{\mathcal{X}}$-Private Mechanisms for Linear Queries