Skip to content
Snippets Groups Projects
Commit 91e42b73 authored by Christopher J. Morrone's avatar Christopher J. Morrone
Browse files

proctrack/aix needs slurmd to run as root, so add a check for uid.

parent 39cb2a24
No related branches found
No related tags found
No related merge requests found
...@@ -103,6 +103,11 @@ extern int init ( void ) ...@@ -103,6 +103,11 @@ extern int init ( void )
return SLURM_ERROR; return SLURM_ERROR;
} }
if ((pid_t)0 != getuid()) {
error("proctrack/aix requires the slurmd to run as root.");
return SLURM_ERROR;
}
return SLURM_SUCCESS; return SLURM_SUCCESS;
} }
......
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