symlink /var/tmp to /tmp and mount /tmp with no-execute thingy ofcourse?
You can do that, but there are a couple schools of thought concerning using a symlink for that purpose.
1. /tmp and /var/tmp were originally designed for two different purposes. /tmp is a scratch directory used by the OS for mounting other volumes and file systems, starting GUIs etc. If it becomes full, you can have a major problem, and if you reboot you might be worse off. Thus, it is standard practice to empty the contents of /tmp during the boot. Apps also leverage this expectation of being cleaned to purge dead sessions, etc. /var/tmp was designed for use by applications to store items that depend on them surviving the boot process.
2. Symlinking /var/tmp to /tmp does disk space. Its roots are more cost-driven. It is also widely deployed.
When Unix or Linux are used in the glass house for line-of-business software, the standard is separate partitions for each. The thought is if anything goes haywire in /tmp, it gets cleaned on boot. Application-specific temporary files that normally need to survive boot, do, and if something goes haywire with an app that fills up /var/tmp, you can get at it and clear it.
Since both of these schools of thought have wide-spread acceptance, often software vendors design for the lowest common denominator, which would be the symlink-plus-sticky-bit method if it needs to survive boot. Others ask via a config file for a location that doesn't get cleared on boot, /var/tmp being perfect for this, and some simply expect their stuff won't disappear on boot if they place it in /var/tmp, since the expectation is it does not get cleared on boot. Some software tells you to turn off clearing /tmp on boot, and some just while installing.
Which one people use makes no difference to me but you have to pick one or the other when you install. Number 1 is the one that made the most sense to me personally. That way I don't have to be concerned what happens in /tmp during boot. However, there are a couple points that everyone can agree on.
1. These are both widely deployed schools of thought.
2. If it is acceptable for applications to use /tmp for their temporary files, and even symlink /var/tmp to it, it should be even be more acceptable to allow applications to access to /var/tmp, an area specifically set aside for that purpose.