I would like to trick a non-malicious process to think that it is writing to directory
$HOME/abc/def/ while it writes in fact to
$HOME/xyz/def (the former path is hardcoded and it does not work for my for various reasons). The
$HOME/abc/def/ directory should not exists at all. I thought about using user namespace + filesystem name-space to mount a aufs filesystem over it but I failed (the mount finished stating insufficient privileges).
Is it possible to do using user + filesystem namespaces? If not is there any risk creating suid program that creates such filesystem namespace for single program (the setup is currently low-security but I prefer to be security concious)? Or maybe there is existing solution to do it?