point /var/run to ../run instead of /run to avoid host root file system interference
Hello All,
we just experienced an issue on servers using rootless podman & alpine linux 3.15.0 on almalinux 8.5 and overlay file system that was related to the image content.
Basically what happened is, that uids/gids had to be reassigned for several users, using a chwon -R uid:gid on the users /home/ directories. Interestingly we found after that execution that /run directory permissions had been messed up and assigned to one of the users.
The root cause was that the images /var/run directories symlink points to /run, which leads to the following situation on the file system: ./.local/share/containers/storage/overlay/8d3ac3489996423f53d6087c81180006263b79f206d3fdec9e66f0e27ceb8759/diff/var/run -> /run
Pointing /var/run to ../run would solve such problems and not lead to a situation that interferes with the hosts root file system in such setting.
Thank you for consideration & best regards, Harald Gutmann