Security policies for sharing knowledge in virtual communities