Skip to content
Snippets Groups Projects
Commit cd7337ac authored by Moe Jette's avatar Moe Jette
Browse files

Disable allocate/step launch to even start on FRONT_END_SYSTEM for user other

than SlurmUser or root.
parent cb742873
No related branches found
No related tags found
No related merge requests found
...@@ -233,6 +233,15 @@ int srun(int ac, char **av) ...@@ -233,6 +233,15 @@ int srun(int ac, char **av)
reattach(); reattach();
exit (0); exit (0);
} else { } else {
/* Combined job allocation and job step launch */
#ifdef HAVE_FRONT_END
uid_t my_uid = getuid();
if ((my_uid != 0)
&& (my_uid != slurm_get_slurm_user_id())) {
error("srun task launch not supported on this system");
exit(1);
}
#endif
sig_setup_sigmask(); sig_setup_sigmask();
if ( !(resp = allocate_nodes()) ) if ( !(resp = allocate_nodes()) )
exit(1); exit(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment