(In reply to Tim McMullan from https://bugs.schedmd.com/show_bug.cgi?id=12403#c5) > The changes you describe for spank_user_init(), spank_task_post_fork(), and > spank_task_exit() I expect would be an enhancement. We should break those > desired changes out into an enhancement ticket and chat with Tim (Wickberg) > et al. about it. I'm breaking out a request from bug#12403 (docs RFE) into this separate ticket (breaking change RFE). I'd like to see changes made to the entrypoints marked 'YES' in the table below. I'd like to see those entrypoints contained within the tmpfs mount namespace. As of 21.08.2, they aren't. Location Which /tmp Want changed? -------- ---------- ------------- spank_job_prolog() OS Prolog OS spank_init() OS spank_init_post_opt() OS spank_user_init() OS YES spank_task_post_fork() OS YES spank_task_init_privileged() Job spank_task_init() Job TaskProlog Job spank_task_exit() OS YES spank_exit() OS spank_job_epilog() OS Epilog OS user_init() and task_exit() are particularly critical. We need that in order for pyxis (https://github.com/NVIDIA/pyxis) to work properly without needing to reconfigure all our paths to avoid /tmp and /dev/shm. The request for the change to post_fork() is mostly just so the table looks logical when documented in chronological order (as is the table given here).
*** Ticket 17426 has been marked as a duplicate of this ticket. ***
Hi Luke, This has been pushed to the master branch in commits 84eb2c6eb0 through 4ca0f6266b. This functionality turned out to be harder to implement than anticipated, and due to the nature of the changes and how they could potentially break some long standing spank plugins this feature has been gated behind "SlurmdParameters=contain_spank". Without this flag, everything will be have the same as before, but with it spank_user_init(), spank_task_post_fork(), and spank_task_exit() should all run contained. Thanks! --Tim
Since this is pushed now, I'm marking this as resolved. Thanks!