Leveraging social links for trust and privacy in networks