Accepting request 1069399 from hardware

- Replace-deprecated-usmHMACMD5AuthProtocol-Protocol-by-SNMP_DEFAULT_AUTH_PROTO.patch
  Replace deprecated usmHMACMD5AuthProtocol Protocol by
  SNMP_DEFAULT_AUTH_PROTO.

- Utilize sysuser infrastructure to set user/group powerman. (forwarded request 1069386 from eeich)

OBS-URL: https://build.opensuse.org/request/show/1069399
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=29
This commit is contained in:
Dominique Leuenberger 2023-03-04 21:43:54 +00:00 committed by Git OBS Bridge
commit 4989f89de4
3 changed files with 40 additions and 3 deletions

View File

@ -0,0 +1,28 @@
From: Egbert Eich <eich@suse.com>
Date: Sat Mar 4 07:59:09 2023 +0100
Subject: Replace deprecated usmHMACMD5AuthProtocol Protocol by SNMP_DEFAULT_AUTH_PROTO
Patch-mainline: Not yet
Git-commit: 01428c387fc149489536ba9a9ea17095f5a20bc5
References:
Signed-off-by: Egbert Eich <eich@suse.com>
Signed-off-by: Egbert Eich <eich@suse.de>
---
snmppower/snmppower.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/snmppower/snmppower.c b/snmppower/snmppower.c
index 652b806..eb30dc4 100644
--- a/snmppower/snmppower.c
+++ b/snmppower/snmppower.c
@@ -207,9 +207,9 @@ start_v3 (char **av, char *hostname, struct snmp_session **ssp)
session.securityNameLen = strlen (av[1]);
session.securityLevel = SNMP_SEC_LEVEL_AUTHNOPRIV;
- session.securityAuthProto = usmHMACMD5AuthProtocol;
+ session.securityAuthProto = SNMP_DEFAULT_AUTH_PROTO;
session.securityAuthProtoLen =
- sizeof (usmHMACMD5AuthProtocol) / sizeof (oid);
+ sizeof (SNMP_DEFAULT_AUTH_PROTO) / sizeof (oid);
session.securityAuthKeyLen = USM_AUTH_KU_LEN;
if (generate_Ku (session.securityAuthProto,

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Mar 4 07:01:36 UTC 2023 - Egbert Eich <eich@suse.com>
- Replace-deprecated-usmHMACMD5AuthProtocol-Protocol-by-SNMP_DEFAULT_AUTH_PROTO.patch
Replace deprecated usmHMACMD5AuthProtocol Protocol by
SNMP_DEFAULT_AUTH_PROTO.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 15 14:20:41 UTC 2021 - Egbert Eich <eich@suse.com> Mon Nov 15 14:20:41 UTC 2021 - Egbert Eich <eich@suse.com>
@ -19,7 +26,7 @@ Thu May 13 07:54:21 UTC 2021 - pgajdos@suse.com
* Add etc/openbmc.dev (Albert Chu, PR #33) * Add etc/openbmc.dev (Albert Chu, PR #33)
* Add etc/kvm.dev & etc/kvm-ssh.dev (tisbeok, PR #8) * Add etc/kvm.dev & etc/kvm-ssh.dev (tisbeok, PR #8)
* Fix misinterpretation of error strings in ipmipower.dev. * Fix misinterpretation of error strings in ipmipower.dev.
- fix [bsc#1185180] -- PIDFile under /run - fix [bsc#1185071] -- PIDFile under /run
- modified patches - modified patches
% service-dynamic-user-autofiles.patch (refreshed) % service-dynamic-user-autofiles.patch (refreshed)
% service-dynamic-user-configure.patch (refreshed) % service-dynamic-user-configure.patch (refreshed)

View File

@ -1,7 +1,7 @@
# #
# spec file for package powerman # spec file for package powerman
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -41,6 +41,7 @@ Source0: https://github.com/chaos/%{name}/releases/download/%{version}/%{
Patch1: service-dynamic-user-autofiles.patch Patch1: service-dynamic-user-autofiles.patch
Patch2: service-dynamic-user-configure.patch Patch2: service-dynamic-user-configure.patch
Patch3: harden_powerman.service.patch Patch3: harden_powerman.service.patch
Patch4: Replace-deprecated-usmHMACMD5AuthProtocol-Protocol-by-SNMP_DEFAULT_AUTH_PROTO.patch
BuildRequires: automake BuildRequires: automake
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
@ -84,6 +85,7 @@ Header files, pkg-config file and man pages for developing applications using Po
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
%patch4 -p1
%build %build
%configure \ %configure \