Roof Putty

if you need to replace it then a product like all-metal (a filler) works great. It can be topped with standard body fillers to finish.

In your case you'll want to remove the putty someone applied and deal with the rust properly. Surface rust can be removed but cancerous metal (holes) needs to be cut out and patched or replaced.

x2!