Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set $HOME to /root on chroot-isolation #2057

Closed
wants to merge 1 commit into from
Closed

set $HOME to /root on chroot-isolation #2057

wants to merge 1 commit into from

Conversation

boaz0
Copy link
Collaborator

@boaz0 boaz0 commented Jan 2, 2020

closes #2005

When isolation is set to chroot we are passing to chroot.RunUsingChroot the homeDir argument which is given by configureUIDGID that eventually gets it from chroot.GetUser.

In chroot.GetUser the default homeDir is set to / which that's why the $HOME env variable is / when using chroot isolation.

@boaz0 boaz0 changed the title set /home/bshuster to /root on chroot-isolation set $HOME to /root on chroot-isolation Jan 2, 2020
pkg/chrootuser/user.go Outdated Show resolved Hide resolved
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
@TomSweeneyRedHat
Copy link
Member

LGTM

@rhatdan
Copy link
Member

rhatdan commented Jan 7, 2020

@rh-atomic-bot r+

@rh-atomic-bot
Copy link
Collaborator

📌 Commit 597eb97 has been approved by rhatdan

@rh-atomic-bot
Copy link
Collaborator

⌛ Testing commit 597eb97 with merge 7ab6b4d...

rh-atomic-bot pushed a commit that referenced this pull request Jan 7, 2020
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>

Closes: #2057
Approved by: rhatdan
@rh-atomic-bot
Copy link
Collaborator

💥 Test timed out

@rhatdan
Copy link
Member

rhatdan commented Jan 8, 2020

@rh-atomic-bot retry

@rh-atomic-bot
Copy link
Collaborator

⌛ Testing commit 597eb97 with merge a3dec02...

@rh-atomic-bot
Copy link
Collaborator

☀️ Test successful - status-papr, status-travis
Approved by: rhatdan
Pushing a3dec02 to master...

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wrong $HOME var when run with chroot isolation
4 participants