1
I'm compiling nginx from source and wanted to use checkinstall so it can be uninstalled more easily later. The problem is that checkinstall executes scripts in /var/tmp which I mounted with noexec to prevent privilege escalation.
I found this site which recommends temporary binding /var/tmp to a different place to allow script execution in /var/tmp. But doesn't that cause problems with running processes that use /var/tmp at that moment and render me vulnerable?
Which brings me to the question is there a way to use checkinstall without mounting /var/tmp as exec? Maybe using chroot or unshare?