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

sandbox directory created as root #218

Open
mhecker opened this issue Apr 30, 2015 · 3 comments
Open

sandbox directory created as root #218

mhecker opened this issue Apr 30, 2015 · 3 comments
Assignees
Labels

Comments

@mhecker
Copy link
Contributor

mhecker commented Apr 30, 2015

this may result in Problems creating temporary subdirectories in SANDBOX_DIR, such as

File ".../Praktomat/src/utilities/file_operations.py", line 62, in create_tempfolder
new_tmpdir = tempfile.mkdtemp()

File "/usr/lib/python2.7/tempfile.py", line 325, in mkdtemp
_os.mkdir(file, 0700)

OSError: [Errno 13] Permission denied: '$SANDBOX_DIR/tmpyzvcmD'

as explained by @nomeata:

Der Praktomat verwendet "docker run --volume ", um die
Sandbox dem Prozess zur Verfügung zu stellen. Das wird (via safe-docker)
aber als root ausgeführt. Und "docker run" erstellt das Volume, wenn
noch nicht vorhanden, und damit als root.

Naheliegende Lösung: Im Praktomaten vorher prüfen obs das Verzeichnis
gibt und ggf. selbst erstellen.

@mhecker mhecker added the Error label Apr 30, 2015
@mhecker mhecker self-assigned this Apr 30, 2015
@nomeata
Copy link
Contributor

nomeata commented Apr 28, 2016

Ist das mit dem neusten Docker noch ein Problem? Ich meinte nach dem letzten Reboot tat alles...

@mhecker
Copy link
Contributor Author

mhecker commented Apr 28, 2016

wobei die Probleme iirc nicht bei regulären reboots, sondern nur bei boots-nach-kernel-oops auftraten?!?!?

@nomeata
Copy link
Contributor

nomeata commented Apr 28, 2016

Das Problem mit den Berechnungen trat meines Wissens nach in beiden Fällen auf.

Am 28. April 2016 16:56:35 MESZ, schrieb Martin Hecker [email protected]:

wobei die Probleme iirc nicht bei regulären reboots, sondern nur bei
boots-nach-kernel-oops auftraten?!?!?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#218 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants