Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
146bd61a
Commit
146bd61a
authored
12 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for Allowing user root to add jobs/steps to the dbd.
parent
782b3fdb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/slurmdbd/proc_req.c
+8
-8
8 additions, 8 deletions
src/slurmdbd/proc_req.c
with
8 additions
and
8 deletions
src/slurmdbd/proc_req.c
+
8
−
8
View file @
146bd61a
...
@@ -1791,7 +1791,7 @@ static int _job_complete(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -1791,7 +1791,7 @@ static int _job_complete(slurmdbd_conn_t *slurmdbd_conn,
int
rc
=
SLURM_SUCCESS
;
int
rc
=
SLURM_SUCCESS
;
char
*
comment
=
NULL
;
char
*
comment
=
NULL
;
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
)
{
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
&&
*
uid
!=
0
)
{
comment
=
"DBD_JOB_COMPLETE message from invalid uid"
;
comment
=
"DBD_JOB_COMPLETE message from invalid uid"
;
error
(
"CONN:%u %s %u"
,
error
(
"CONN:%u %s %u"
,
slurmdbd_conn
->
newsockfd
,
comment
,
*
uid
);
slurmdbd_conn
->
newsockfd
,
comment
,
*
uid
);
...
@@ -1861,7 +1861,7 @@ static int _job_start(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -1861,7 +1861,7 @@ static int _job_start(slurmdbd_conn_t *slurmdbd_conn,
dbd_id_rc_msg_t
id_rc_msg
;
dbd_id_rc_msg_t
id_rc_msg
;
char
*
comment
=
NULL
;
char
*
comment
=
NULL
;
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
)
{
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
&&
*
uid
!=
0
)
{
comment
=
"DBD_JOB_START message from invalid uid"
;
comment
=
"DBD_JOB_START message from invalid uid"
;
error
(
"CONN:%u %s %u"
,
error
(
"CONN:%u %s %u"
,
slurmdbd_conn
->
newsockfd
,
comment
,
*
uid
);
slurmdbd_conn
->
newsockfd
,
comment
,
*
uid
);
...
@@ -1901,7 +1901,7 @@ static int _job_suspend(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -1901,7 +1901,7 @@ static int _job_suspend(slurmdbd_conn_t *slurmdbd_conn,
int
rc
=
SLURM_SUCCESS
;
int
rc
=
SLURM_SUCCESS
;
char
*
comment
=
NULL
;
char
*
comment
=
NULL
;
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
)
{
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
&&
*
uid
!=
0
)
{
comment
=
"DBD_JOB_SUSPEND message from invalid uid"
;
comment
=
"DBD_JOB_SUSPEND message from invalid uid"
;
error
(
"CONN:%u %s %u"
,
error
(
"CONN:%u %s %u"
,
slurmdbd_conn
->
newsockfd
,
comment
,
*
uid
);
slurmdbd_conn
->
newsockfd
,
comment
,
*
uid
);
...
@@ -2530,7 +2530,7 @@ static int _node_state(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -2530,7 +2530,7 @@ static int _node_state(slurmdbd_conn_t *slurmdbd_conn,
char
*
comment
=
NULL
;
char
*
comment
=
NULL
;
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
)
{
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
&&
*
uid
!=
0
)
{
comment
=
"DBD_NODE_STATE message from invalid uid"
;
comment
=
"DBD_NODE_STATE message from invalid uid"
;
error
(
"CONN:%u %s %u"
,
error
(
"CONN:%u %s %u"
,
slurmdbd_conn
->
newsockfd
,
comment
,
*
uid
);
slurmdbd_conn
->
newsockfd
,
comment
,
*
uid
);
...
@@ -3347,7 +3347,7 @@ static int _send_mult_job_start(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -3347,7 +3347,7 @@ static int _send_mult_job_start(slurmdbd_conn_t *slurmdbd_conn,
dbd_job_start_msg_t
*
job_start_msg
;
dbd_job_start_msg_t
*
job_start_msg
;
dbd_id_rc_msg_t
*
id_rc_msg
;
dbd_id_rc_msg_t
*
id_rc_msg
;
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
)
{
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
&&
*
uid
!=
0
)
{
comment
=
"DBD_SEND_MULT_JOB_START message from invalid uid"
;
comment
=
"DBD_SEND_MULT_JOB_START message from invalid uid"
;
error
(
"%s %u"
,
comment
,
*
uid
);
error
(
"%s %u"
,
comment
,
*
uid
);
*
out_buffer
=
make_dbd_rc_msg
(
slurmdbd_conn
->
rpc_version
,
*
out_buffer
=
make_dbd_rc_msg
(
slurmdbd_conn
->
rpc_version
,
...
@@ -3401,7 +3401,7 @@ static int _send_mult_msg(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -3401,7 +3401,7 @@ static int _send_mult_msg(slurmdbd_conn_t *slurmdbd_conn,
Buf
req_buf
=
NULL
,
ret_buf
=
NULL
;
Buf
req_buf
=
NULL
,
ret_buf
=
NULL
;
int
rc
=
SLURM_SUCCESS
;
int
rc
=
SLURM_SUCCESS
;
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
)
{
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
&&
*
uid
!=
0
)
{
comment
=
"DBD_SEND_MULT_MSG message from invalid uid"
;
comment
=
"DBD_SEND_MULT_MSG message from invalid uid"
;
error
(
"%s %u"
,
comment
,
*
uid
);
error
(
"%s %u"
,
comment
,
*
uid
);
*
out_buffer
=
make_dbd_rc_msg
(
slurmdbd_conn
->
rpc_version
,
*
out_buffer
=
make_dbd_rc_msg
(
slurmdbd_conn
->
rpc_version
,
...
@@ -3457,7 +3457,7 @@ static int _step_complete(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -3457,7 +3457,7 @@ static int _step_complete(slurmdbd_conn_t *slurmdbd_conn,
int
rc
=
SLURM_SUCCESS
;
int
rc
=
SLURM_SUCCESS
;
char
*
comment
=
NULL
;
char
*
comment
=
NULL
;
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
)
{
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
&&
*
uid
!=
0
)
{
comment
=
"DBD_STEP_COMPLETE message from invalid uid"
;
comment
=
"DBD_STEP_COMPLETE message from invalid uid"
;
error
(
"%s %u"
,
comment
,
*
uid
);
error
(
"%s %u"
,
comment
,
*
uid
);
rc
=
ESLURM_ACCESS_DENIED
;
rc
=
ESLURM_ACCESS_DENIED
;
...
@@ -3530,7 +3530,7 @@ static int _step_start(slurmdbd_conn_t *slurmdbd_conn,
...
@@ -3530,7 +3530,7 @@ static int _step_start(slurmdbd_conn_t *slurmdbd_conn,
int
rc
=
SLURM_SUCCESS
;
int
rc
=
SLURM_SUCCESS
;
char
*
comment
=
NULL
;
char
*
comment
=
NULL
;
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
)
{
if
(
*
uid
!=
slurmdbd_conf
->
slurm_user_id
&&
*
uid
!=
0
)
{
comment
=
"DBD_STEP_START message from invalid uid"
;
comment
=
"DBD_STEP_START message from invalid uid"
;
error
(
"%s %u"
,
comment
,
*
uid
);
error
(
"%s %u"
,
comment
,
*
uid
);
rc
=
ESLURM_ACCESS_DENIED
;
rc
=
ESLURM_ACCESS_DENIED
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment