0728bd93f6
- bsc#1163026 - CVE-2020-5208 - Use license macro for COPYING, instead of doc - Add ChangeLog mainline log to docs for shorter obs changelogs. This will be the last more detailed changelog, due to more important buffer overflow patches. Otherwise this changelog will not include (mainline) changes anymore. - Update to version 1.8.18+git20200204.7ccea28: * fru, sdr: Fix id_string buffer overflows * lanp: Fix buffer overflows in get_lan_param_select * channel: Fix buffer overflow * session: Fix buffer overflow in ipmi_get_session_info * fru: Fix buffer overflow in ipmi_spd_print_fru * fru: Fix buffer overflow vulnerabilities * chassis: bootmbox: Refix 62a04390 * configure: Drop requirement for curses et. al libs - Add a configure option to disable IANA PEN database internet download A autotools_define_DOWNLOAD.diff D create_pen_list_from_local_file.patch - New pen database: M enterprise-numbers - Patches adjusted to latest mainline code: M fix_file_permissions.patch M ipmitool_adjust_suse_paths.patch M several_more_compile_fixes.patch OBS-URL: https://build.opensuse.org/request/show/773431 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ipmitool?expand=0&rev=51
26 lines
545 B
Diff
26 lines
545 B
Diff
---
|
|
src/ipmievd.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
--- a/src/ipmievd.c
|
|
+++ b/src/ipmievd.c
|
|
@@ -700,6 +700,7 @@
|
|
int i, rc;
|
|
int daemon = 1;
|
|
struct sigaction act;
|
|
+ mode_t oldumask;
|
|
|
|
memset(pidfile, 0, 64);
|
|
sprintf(pidfile, "%s%d", DEFAULT_PIDFILE, eintf->intf->devnum);
|
|
@@ -762,8 +763,9 @@
|
|
|
|
ipmi_start_daemon(eintf->intf);
|
|
|
|
- umask(022);
|
|
+ oldumask = umask(022);
|
|
fp = ipmi_open_file_write(pidfile);
|
|
+ umask(oldumask);
|
|
if (!fp) {
|
|
/* Failed to get fp on PID file -> exit. */
|
|
log_halt();
|