Closed ttyS4 closed 6 years ago
@stdweird what state is this in?
@jrha it's not ready
I am going to get back with my updates by the end of the week.
@ttyS4 Ok thanks, I'd like to finalise the release soon.
I am experimenting with this: https://github.com/ttyS4/ncm-ncd/commit/d67cbb6d4eeca9e8c19dea454434320e188a5c82 however I got stuck and need some help.
I do not know how can I get the chroot setting and would need some guidance.
@ned21 I want to finalise the release this week, would you guys mind if we bumped this to 18.3?
@jrha #123 should replace this and is is ready to merge in.
Closing as replaced by #123.
There are multiple changes here. It displays my current understanding of how these modules do chdir.
The current behavior is:
/tmp
/tmp
/tmp
(which NCD::CLI set up)New proposed behavior after this change:
Instead of
/tmp
a/tmp/ncd-components-XXXXXXXX
(x's replaced with random alphanumerics) is used. (This is good because/tmp
is a hostile environment being a world-writable directory.) Step 1. removed. Step 4. kept because we need to leave the tempdir to let the module to automatically clean it up.If a module changes the current directory during its execution Step 2. still changes back to the previous.
/tmp/ncd-components-XXXXXXXX
.