From cd7337ace31b98a1d73af322ea687ec4e87d5ff6 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Tue, 21 Mar 2006 17:09:04 +0000 Subject: [PATCH] Disable allocate/step launch to even start on FRONT_END_SYSTEM for user other than SlurmUser or root. --- src/srun/srun.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/srun/srun.c b/src/srun/srun.c index e80f66fa9a8..39c13a8a8a7 100644 --- a/src/srun/srun.c +++ b/src/srun/srun.c @@ -233,6 +233,15 @@ int srun(int ac, char **av) reattach(); exit (0); } 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(); if ( !(resp = allocate_nodes()) ) exit(1); -- GitLab