EESSI / software-layer

Software layer of the EESSI project
https://eessi.github.io/docs/software_layer
GNU General Public License v2.0
24 stars 47 forks source link

GPU links in host-injections not readable to the world #489

Open casparvl opened 8 months ago

casparvl commented 8 months ago

After running link_nvidia_host_libraries.sh the file permissions are:

$ ls -ald /cvmfs/software.eessi.io/host_injections/2023.06/compat/linux/x86_64/lib/
drwxr-x--- 2 userxyz userxyz 4096 Dec 22 14:13 /cvmfs/software.eessi.io/host_injections/2023.06/compat/linux/x86_64/lib/

This made it work for me (I happened to be in the group of userxyz), but not for my colleague (who was not in that group).

Should we have the link_nvidia_host_libraries.sh script do chmod -R o+rX on those symlinks? Or do we prefer to respect the system umask and make a remark in our install documentation that these permissions may need to be adapted?

ocaisa commented 8 months ago

The files are created according to the current UMASK, what we should probably do is check the umask when the script is being run.