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:
parent
0b1168a162
commit
06a80120b0
@ -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@.
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user