Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
slurm
U_12-Swap-chown-for-lchown.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File U_12-Swap-chown-for-lchown.patch of Package slurm
From: Tim Wickberg <tim@schedmd.com> Date: Wed Oct 11 12:45:25 2023 -0600 Subject: [PATCH 12/19]Swap chown() for lchown(). Patch-mainline: Upstream Git-repo: https://github.com/SchedMD/slurm Git-commit: 80fb411e189527221b935083124154799a3a006b References: CVE-2022-29500, bsc#1216207 Signed-off-by: Egbert Eich <eich@suse.de> Co-authored-by: Alejandro Sanchez <alex@schedmd.com> --- src/plugins/switch/cray_aries/iaa.c | 2 +- src/plugins/switch/cray_aries/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/switch/cray_aries/iaa.c b/src/plugins/switch/cray_aries/iaa.c index fefa7b6207..bf8e22b1b1 100644 --- a/src/plugins/switch/cray_aries/iaa.c +++ b/src/plugins/switch/cray_aries/iaa.c @@ -65,7 +65,7 @@ int write_iaa_file(stepd_step_rec_t *job, slurm_cray_jobinfo_t *sw_job, } // chown the file to the job user - rc = chown(fname, job->uid, job->gid); + rc = lchown(fname, job->uid, job->gid); if (rc == -1) { CRAY_ERR("chown(%s, %d, %d) failed: %m", fname, (int)job->uid, (int)job->gid); diff --git a/src/plugins/switch/cray_aries/util.c b/src/plugins/switch/cray_aries/util.c index b9d0a419c5..b0594d742b 100644 --- a/src/plugins/switch/cray_aries/util.c +++ b/src/plugins/switch/cray_aries/util.c @@ -68,7 +68,7 @@ int create_apid_dir(uint64_t apid, uid_t uid, gid_t gid) return SLURM_ERROR; } - rc = chown(apid_dir, uid, gid); + rc = lchown(apid_dir, uid, gid); if (rc) { CRAY_ERR("chown %s, %d, %d failed: %m", apid_dir, (int)uid, (int)gid);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor