Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
slurm.32299
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.32299
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: 5583554442c214b08362de407fd43b9464d6b0e0 References: CVE-2022-29500, bsc#1216207 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 94434c5e38..df79b7d118 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 @@ -464,11 +464,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