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
dddb8361
"README.rst" did not exist on "2e82c967192bfac1e7c9fbec9d42c6c0ed572c9b"
Commit
dddb8361
authored
22 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
More authd bug fixes for slurmctld
parent
a9155828
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/slurmctld/controller.c
+12
-12
12 additions, 12 deletions
src/slurmctld/controller.c
with
12 additions
and
12 deletions
src/slurmctld/controller.c
+
12
−
12
View file @
dddb8361
...
...
@@ -773,7 +773,7 @@ slurm_rpc_job_step_cancel ( slurm_msg_t * msg )
start_time
=
clock
();
debug
(
"Processing RPC: REQUEST_CANCEL_JOB_STEP"
);
#ifdef HAVE_AUTHD
uid
=
slurm_auth_uid
(
msg
.
cred
);
uid
=
slurm_auth_uid
(
msg
->
cred
);
#endif
lock_slurmctld
(
job_write_lock
);
...
...
@@ -844,7 +844,7 @@ slurm_rpc_job_step_complete ( slurm_msg_t * msg )
start_time
=
clock
();
debug
(
"Processing RPC: REQUEST_COMPLETE_JOB_STEP"
);
#ifdef HAVE_AUTHD
uid
=
slurm_auth_uid
(
msg
.
cred
);
uid
=
slurm_auth_uid
(
msg
->
cred
);
#endif
lock_slurmctld
(
job_write_lock
);
...
...
@@ -1088,8 +1088,8 @@ slurm_rpc_submit_batch_job ( slurm_msg_t * msg )
/* do RPC call */
dump_job_desc
(
job_desc_msg
);
#ifdef HAVE_AUTHD
uid
=
slurm_auth_uid
(
msg
.
cred
);
if
((
uid
!=
job_desc_msg
.
user_
ID
)
&&
uid
=
slurm_auth_uid
(
msg
->
cred
);
if
((
uid
!=
job_desc_msg
->
user_
id
)
&&
(
uid
!=
0
))
{
error_code
=
ESLURM_USER_ID_MISSING
;
error
(
"Bogus SUBMIT_JOB from uid %d"
,
uid
);
...
...
@@ -1153,7 +1153,7 @@ slurm_rpc_allocate_resources ( slurm_msg_t * msg , uint8_t immediate )
/* do RPC call */
dump_job_desc
(
job_desc_msg
);
#ifdef HAVE_AUTHD
uid
=
slurm_auth_uid
(
msg
.
cred
);
uid
=
slurm_auth_uid
(
msg
->
cred
);
if
((
uid
!=
job_desc_msg
->
user_id
)
&&
(
uid
!=
0
))
{
error_code
=
ESLURM_USER_ID_MISSING
;
...
...
@@ -1225,7 +1225,7 @@ slurm_rpc_allocate_and_run ( slurm_msg_t * msg )
/* do RPC call */
dump_job_desc
(
job_desc_msg
);
#ifdef HAVE_AUTHD
uid
=
slurm_auth_uid
(
msg
.
cred
);
uid
=
slurm_auth_uid
(
msg
->
cred
);
if
((
uid
!=
job_desc_msg
->
user_id
)
&&
(
uid
!=
0
))
{
error_code
=
ESLURM_USER_ID_MISSING
;
...
...
@@ -1308,7 +1308,7 @@ void slurm_rpc_job_will_run ( slurm_msg_t * msg )
/* do RPC call */
dump_job_desc
(
job_desc_msg
);
#ifdef HAVE_AUTHD
uid
=
slurm_auth_uid
(
msg
.
cred
);
uid
=
slurm_auth_uid
(
msg
->
cred
);
if
((
uid
!=
job_desc_msg
->
user_id
)
&&
(
uid
!=
0
))
{
error_code
=
ESLURM_USER_ID_MISSING
;
...
...
@@ -1354,7 +1354,7 @@ slurm_rpc_reconfigure_controller ( slurm_msg_t * msg )
start_time
=
clock
();
debug
(
"Processing RPC: REQUEST_RECONFIGURE"
);
#ifdef HAVE_AUTHD
uid
=
slurm_auth_uid
(
msg
.
cred
);
uid
=
slurm_auth_uid
(
msg
->
cred
);
if
(
uid
!=
0
)
{
error
(
"Security violation, RECONFIGURE RPC from uid %d"
,
uid
);
error_code
=
ESLURM_USER_ID_MISSING
;
...
...
@@ -1406,7 +1406,7 @@ slurm_rpc_shutdown_controller ( slurm_msg_t * msg )
/* do RPC call */
debug
(
"Performing RPC: REQUEST_SHUTDOWN"
);
#ifdef HAVE_AUTHD
uid
=
slurm_auth_uid
(
msg
.
cred
);
uid
=
slurm_auth_uid
(
msg
->
cred
);
if
(
uid
!=
0
)
{
error
(
"Security violation, SHUTDOWN RPC from uid %d"
,
uid
);
error_code
=
ESLURM_USER_ID_MISSING
;
...
...
@@ -1443,7 +1443,7 @@ slurm_rpc_shutdown_controller_immediate ( slurm_msg_t * msg )
#ifdef HAVE_AUTHD
int
uid
;
uid
=
slurm_auth_uid
(
msg
.
cred
);
uid
=
slurm_auth_uid
(
msg
->
cred
);
if
(
uid
!=
0
)
{
error
(
"Security violation, SHUTDOWN_IMMEDIATE RPC from uid %d"
,
uid
);
error_code
=
ESLURM_USER_ID_MISSING
;
...
...
@@ -1530,10 +1530,10 @@ slurm_rpc_node_registration ( slurm_msg_t * msg )
start_time
=
clock
();
debug
(
"Processing RPC: MESSAGE_NODE_REGISTRATION_STATUS"
);
#ifdef HAVE_AUTHD
uid
=
slurm_auth_uid
(
msg
.
cred
);
uid
=
slurm_auth_uid
(
msg
->
cred
);
if
(
uid
!=
0
)
{
error_code
=
ESLURM_USER_ID_MISSING
;
error
(
"
Bogus
NODE_REGISTER RPC from uid %d"
,
uid
);
error
(
"
Security violation,
NODE_REGISTER RPC from uid %d"
,
uid
);
}
#endif
if
(
error_code
==
0
)
{
...
...
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