Add sethomevar hook#6
Conversation
|
I see that when reading the .process.user.uid if this does not exist it will create it to be 0, i.e. root This makes sense from podman point of view but I am not sure this is something that the user expects, and it is not easy to debug (given that the intent is to give access to the user's home) maybe is best to error out? worst case, the user would be aware and can disable the hook? Also, under most conditions skybox should set keep-id, so uid should be correctly populated, thus not being there might mean something else is going wrong |
The OCI runtime spec states that Therefore, the only circumstance where I imagine this failing is when However, I'm also thinking that this hook is intended for the specific use case of Skybox, where containers run with |
Co-authored-by: Alberto Madonna <alberto.madonna@cscs.ch>
In order to replace container HOME environment entry with HOME value for the running user from the system (getent passwd)
It doesn't use HOME variable from user environment, but from the system.
Keep in mind, there is nothing that will make the user land in HOME.