fix for preventing users from setting system priority on their own jobs (Bas van der Vlies)

git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@134 3f5042e3-fb1d-0410-be18-d6ca2573e517
This commit is contained in:
bchristiansen 2010-07-21 14:35:56 +00:00
parent 0b1168a162
commit 06a80120b0
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Maui 3.3.1
- Fixed issue where hostlist was being overwritten resulting in broken $PBS_NODEFILE. (Alexis Cousein)
- Fixed issue where users could set system priority on their own jobs. (Bas van der Vlies)
Maui 3.3
- Fixed configure script. Was putting RMCFG[name] TYPE=PBS@RMNMHOST@.

View File

@ -5521,7 +5521,14 @@ int MUIJobSetAttr(
{
long tmpPrio;
tmpPrio = strtol(Val,NULL,0);
if (!(CFlags & ((1 << fAdmin1) | (1 << fAdmin2))))
{
sprintf(Msg,"ERROR: not authorized to run this command");
return(FAILURE);
}
tmpPrio = strtol(Val,NULL,0);
if ((tmpPrio < 0) || (tmpPrio > 1000))
{