Installing files under /etc yields SandboxViolation in virtualenv #155

Closed
atodorov opened this Issue Feb 21, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@atodorov
Contributor

atodorov commented Feb 21, 2017

In one of my environments installing a newer version of Nitrate yields:

remote: error: Setup script exited with error: SandboxViolation: open('/etc/httpd/conf.d/nitrate-httpd.conf', 'wb') {}

this is due to the change made in ff4ecc7 adding the data_files attribute to setup.py. I propose installing these files under /etc via the RPM packages, not via pip.

@atodorov

This comment has been minimized.

Show comment
Hide comment
@atodorov

atodorov Feb 26, 2017

Contributor

@tkdchen ping? This is a real problem in virtualenv or pretty much everywhere if you don't have root access. What's your take on it?

Contributor

atodorov commented Feb 26, 2017

@tkdchen ping? This is a real problem in virtualenv or pretty much everywhere if you don't have root access. What's your take on it?

@tkdchen

This comment has been minimized.

Show comment
Hide comment
@tkdchen

tkdchen Mar 1, 2017

Member

Should be fixed. Removing relative code from setup.py should make it work well.

Member

tkdchen commented Mar 1, 2017

Should be fixed. Removing relative code from setup.py should make it work well.

@atodorov

This comment has been minimized.

Show comment
Hide comment
@atodorov

atodorov Mar 1, 2017

Contributor

OK, sending a patch to fix setup.py shortly.

Contributor

atodorov commented Mar 1, 2017

OK, sending a patch to fix setup.py shortly.

atodorov added a commit to MrSenko/Nitrate that referenced this issue Mar 1, 2017

Don't install files under /etc from setup.py. Fix #155
reverts a change introduced in ff4ecc7. Python tarballs need not
install files under /etc. This will not work with virtualenv and
on OpenShift yields
SandboxViolation: open('/etc/httpd/conf.d/nitrate-httpd.conf', 'wb')

@tkdchen tkdchen added this to the 4.0 milestone Mar 2, 2017

atodorov added a commit to MrSenko/Nitrate that referenced this issue Mar 2, 2017

Don't install files under /etc from setup.py
reverts a change introduced in ff4ecc7. Python tarballs need not
install files under /etc. This will not work with virtualenv and
on OpenShift yields
SandboxViolation: open('/etc/httpd/conf.d/nitrate-httpd.conf', 'wb')

Fix #155

@tkdchen tkdchen closed this in 4317dbf Mar 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment