Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:ARM
slurm.31097
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.31097
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: bb16b266bdfc61610d9f6f44f56c526416bf9f1b References: bsc#1216207,CVE-2023-41914 Signed-off-by: Egbert Eich <eich@suse.de> Co-authored-by: Alejandro Sanchez <alex@schedmd.com> --- src/plugins/switch/cray/iaa.c | 2 +- src/plugins/switch/cray/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/switch/cray/iaa.c b/src/plugins/switch/cray/iaa.c index 5bda7b4338..75a5d489ea 100644 --- a/src/plugins/switch/cray/iaa.c +++ b/src/plugins/switch/cray/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/util.c b/src/plugins/switch/cray/util.c index 9b35f3a88c..1740257389 100644 --- a/src/plugins/switch/cray/util.c +++ b/src/plugins/switch/cray/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