Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
slurm.31097
U_15-Remove-previously-vulnerable-chown-chmod.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File U_15-Remove-previously-vulnerable-chown-chmod.patch of Package slurm.31097
From: Alejandro Sanchez <alex@schedmd.com> Date: Wed Oct 11 12:45:25 2023 -0600 Subject: [PATCH 15/19]Remove (previously-vulnerable) chown() + chmod(). Patch-mainline: Upstream Git-repo: https://github.com/SchedMD/slurm Git-commit: 273e8ce186824bf347c9d8fbd5398c5645efa383 References: bsc#1216207,CVE-2023-41914 Signed-off-by: Egbert Eich <eich@suse.de> After previous commit, the H5Fcreate() will create the .h5 file as the user, removing the need to try to chown()/chmod() the resulting file. --- src/plugins/acct_gather_profile/hdf5/acct_gather_profile_hdf5.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/plugins/acct_gather_profile/hdf5/acct_gather_profile_hdf5.c b/src/plugins/acct_gather_profile/hdf5/acct_gather_profile_hdf5.c index fb54b91a41..97e2ce460a 100644 --- a/src/plugins/acct_gather_profile/hdf5/acct_gather_profile_hdf5.c +++ b/src/plugins/acct_gather_profile/hdf5/acct_gather_profile_hdf5.c @@ -477,11 +477,6 @@ extern int acct_gather_profile_p_node_step_start(stepd_step_rec_t* job) return SLURM_ERROR; } - if (chown(profile_file_name, (uid_t)g_job->uid, - (gid_t)g_job->gid) < 0) - error("chown(%s): %m", profile_file_name); - if (chmod(profile_file_name, 0600) < 0) - error("chmod(%s): %m", profile_file_name); xfree(profile_file_name); if (file_id < 1) {
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