in module_check.py, pass the env vars dictionary returned from check_module_env() to a new func
in that func find the SCC_NAME_DIR variable
make a new "module_files.py" file or something with the functions that check for global writability.
os.walk can be used to walk the directory tree, something like:
for val in os.walk('/path/to/module/install'):
# val --> (dir, [sub_dirs], [files]
# Sample of "val":
# ('/share/pkg.8/module_check/0.5', ['install', 'DIST', 'test', 'build', 'src'], ['modulefile.lua', 'notes.txt'])
# 1) check val[0] for global writability
# then..
for file in val[2]:
path = os.path.join(val[0],file)
#check path for global writability
Add a new moduleloadtest version (with a non-numeric name) with a globally writable file lurking within.
per our discussion...
Add a new
moduleloadtest
version (with a non-numeric name) with a globally writable file lurking within.