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
6ae1d4dd
Commit
6ae1d4dd
authored
20 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Permit SlurmUser to get job allocation info for other user's job.
parent
d397911a
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/job_mgr.c
+4
-3
4 additions, 3 deletions
src/slurmctld/job_mgr.c
with
4 additions
and
3 deletions
src/slurmctld/job_mgr.c
+
4
−
3
View file @
6ae1d4dd
...
...
@@ -1625,7 +1625,7 @@ static int _job_create(job_desc_msg_t * job_desc, uint32_t * new_job_id,
/* Insure that requested partition is valid right now,
* otherwise leave job queued and provide warning code */
if
((
job_desc
->
user_id
==
0
)
||
(
job_desc
->
user_id
==
getuid
()
))
(
job_desc
->
user_id
==
slurmctld_conf
.
slurm_user_id
))
super_user
=
true
;
if
((
!
super_user
)
&&
(
job_desc
->
min_nodes
>
part_ptr
->
max_nodes
))
{
...
...
@@ -2746,7 +2746,7 @@ int update_job(job_desc_msg_t * job_specs, uid_t uid)
job_specs
->
job_id
);
return
ESLURM_INVALID_JOB_ID
;
}
if
((
uid
==
0
)
||
(
uid
==
getuid
()
))
if
((
uid
==
0
)
||
(
uid
==
slurmctld_conf
.
slurm_user_id
))
super_user
=
1
;
if
((
job_ptr
->
user_id
!=
uid
)
&&
(
super_user
==
0
))
{
error
(
"Security violation, JOB_UPDATE RPC from uid %d"
,
...
...
@@ -3146,7 +3146,8 @@ old_job_info(uint32_t uid, uint32_t job_id, char **node_list,
job_ptr
=
find_job_record
(
job_id
);
if
(
job_ptr
==
NULL
)
return
ESLURM_INVALID_JOB_ID
;
if
((
uid
!=
0
)
&&
(
job_ptr
->
user_id
!=
uid
))
if
((
job_ptr
->
user_id
!=
uid
)
&&
(
uid
!=
0
)
&&
(
uid
!=
slurmctld_conf
.
slurm_user_id
))
return
ESLURM_ACCESS_DENIED
;
if
(
IS_JOB_PENDING
(
job_ptr
))
return
ESLURM_JOB_PENDING
;
...
...
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