Our previous boat had foam backed vinyl on the interior sides. OK when new, but with time and heat the foam deteriorated and turned to dust. And couldn't be re-secured.
I was lucky and found some white slightly textured closed cell foam.
At first I was using solvent based contact cement...what you would find at the hardware store. But the fumes! I used a fan to blow fresh air in, but it was still dangerous.
Then I found a 3M water based contact cement. Back then (about 1996) it was about 2 1/2 times more expensive, but had almost double the coverage, so not bad. But the odor was almost pleasant.
My only reason for posting is to say there are safer products to use for attaching fabrics and other headliners. I just looked on the 3M website and saw many water based adhesives, more than what I found years ago