For users using Podman with petalinux projects, podman unshare is the current solution for permission issues. However, if user doesn't allow script to clean up permission issues after exit, user may not access his/her own directories and files. This is problem especially when user mounts his/her own home directory to container and leaves the system with wrong permissions, then he/she may not login after.
To script, add check, user shouldn't be able to mount own home directory directly, on sub-directories under home directory should be allowed.
For users using Podman with petalinux projects, podman unshare is the current solution for permission issues. However, if user doesn't allow script to clean up permission issues after exit, user may not access his/her own directories and files. This is problem especially when user mounts his/her own home directory to container and leaves the system with wrong permissions, then he/she may not login after.
To script, add check, user shouldn't be able to mount own home directory directly, on sub-directories under home directory should be allowed.