Skip to content

Conversation

@JieRen98
Copy link

the config_arch script is for determining the architecture of the system. However, it generates a temp dir at /tmp using mktemp in this line and then compile and run an executable. However, a lot of Linux distributions, e.g., OpenSUSE, mount the /tmp directory with the noexec flag. So it is not allowed to run any executables in /tmp.

This PR generates the temp dir at the current dir rather than in /tmp.

@pakmarkthub
Copy link
Collaborator

Thank you, @JieRen98. However, this does not solve the fundamental issue. On some clusters, the current directory is immutable inside compute nodes (i.e., it is read only). Introducing a variable to Makefile to set the temp directory location might be better.

@JieRen98
Copy link
Author

Thank you, @JieRen98. However, this does not solve the fundamental issue. On some clusters, the current directory is immutable inside compute nodes (i.e., it is read only). Introducing a variable to Makefile to set the temp directory location might be better.

Thanks for your prompt reply. I added several candidates (/tmp, /dev/shm, and pwd). The function checks the existence, writable property, and noexec flag.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants