security resource allocation