!10 [sync] PR-8: LLDPD: Delete redundant codes and enhance code security

From: @openeuler-sync-bot 
Reviewed-by: @hu-chunzhi 
Signed-off-by: @hu-chunzhi
This commit is contained in:
openeuler-ci-bot 2024-08-30 08:31:02 +00:00 committed by Gitee
commit b960f2a4e4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 7 additions and 2 deletions

Binary file not shown.

View File

@ -5,7 +5,7 @@
Summary: Implementation of UB (LLDP)
Name: ub-lldpd
Version: 1.0.0
Release: 2
Release: 3
License: ISC
Group: System/Management
URL: https://lldpd.github.io/
@ -74,6 +74,8 @@ make install DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/sysconfig
install -m644 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ub-lldpd
/usr/lib/rpm/brp-remove-la-files
%pre
# Create ub-lldpd user/group
if getent group %lldpd_group >/dev/null 2>&1 ; then : ; else \
@ -117,12 +119,15 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root)
%{_libdir}/libublldpctl.so
%{_libdir}/libublldpctl.a
%{_libdir}/libublldpctl.la
%{_libdir}/pkgconfig/ub-lldpctl.pc
%{_includedir}/lldpctl.h
%{_includedir}/lldp-const.h
%changelog
* Thu Aug 15 2024 Ge Hu <huge4@huawei.com> - 1.0.0-3
- update to openeuler-sp4.
- Security check and modification.
* Thu Jun 6 2024 Zhongyuan Zhou <zhouzhongyuan1@huawei.com> - 1.0.0-2
- Modify the dguid of network control packets.
- Add the UB-LLDP fuzz test case.