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

salt/master: chdir to root not homedir #27091

Merged
merged 1 commit into from Sep 14, 2015

Conversation

perfinion
Copy link
Contributor

The pre-flight checks try to change to $HOME, this can fail for multiple
reasons. One such case is that /root is a protected dir under SELinux
which the master should not have access to. The daemon should instead
change to the root dir which is the only dir that is always guaranteed
to be there. The limited testing I have managed to do shows that windows
accepts the '/' path too just fine so the os-specific case is not
required either.

Changing to $HOME was added in #21279

Gentoo-Bug: https://bugs.gentoo.org/560300

The pre-flight checks try to change to $HOME, this can fail for multiple
reasons. One such case is that /root is a protected dir under SELinux
which the master should not have access to. The daemon should instead
change to the root dir which is the only dir that is always guaranteed
to be there. The limited testing I have managed to do shows that windows
accepts the '/' path too just fine so the os-specific case is not
required either.
@jfindlay jfindlay added Core relates to code central or existential to Salt Medium Change Tests-Passed labels Sep 13, 2015
@cachedout
Copy link
Contributor

I'm willing to merge this for now, but it needs extensive testing across all platforms so I'd like to let it run the full test suite across additional distros and see how things go. Thanks!

cachedout pushed a commit that referenced this pull request Sep 14, 2015
salt/master: chdir to root not homedir
@cachedout cachedout merged commit c58190d into saltstack:develop Sep 14, 2015
@cachedout
Copy link
Contributor

@twangboy Now that this is merged, please verify that your Windows installs still operate correctly. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core relates to code central or existential to Salt Tests-Passed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants