Risk assessment and management in pervasive computing