add nic_ppp dump mac and vlan function and change tool permission to 0500

add dump mac and vlan table in nic_ppp cmd, change hikptool
execute permission to 0500

note: the hikptool can be executed only by a user with the root permission

Signed-off-by: veega2022 <zhuweijia@huawei.com>
This commit is contained in:
veega2022 2022-11-24 14:28:25 +08:00
parent d0b459444b
commit 82f3c450ff
2 changed files with 6 additions and 3 deletions

Binary file not shown.

View File

@ -3,7 +3,7 @@
Name: hikptool Name: hikptool
Summary: A userspace tool for Linux providing problem location on Kunpeng chips Summary: A userspace tool for Linux providing problem location on Kunpeng chips
Version: 1.0.0 Version: 1.0.0
Release: 4 Release: 5
License: MulanPSL2 License: MulanPSL2
Source: %{name}-%{version}.tar.gz Source: %{name}-%{version}.tar.gz
ExclusiveOS: linux ExclusiveOS: linux
@ -42,8 +42,8 @@ rm -rf ${RPM_BUILD_ROOT}
%files %files
/usr/lib64/libhikptdev.so.1 /usr/lib64/libhikptdev.so.1
/usr/lib64/libhikptdev.so /usr/lib64/libhikptdev.so
%attr(550,root,root) /usr/lib64/libhikptdev.so.1.0.0 %attr(0500,root,root) /usr/lib64/libhikptdev.so.1.0.0
%attr(4550,root,root) /usr/bin/hikptool %attr(0500,root,root) /usr/bin/hikptool
%pre %pre
if [ "$1" = "2" ] ; then #2: update if [ "$1" = "2" ] ; then #2: update
@ -67,6 +67,9 @@ fi
/sbin/ldconfig /sbin/ldconfig
%changelog %changelog
* Thu Nov 24 2022 veega2022 <zhuweijia@huawei.com> 1.0.0-5
- Add nic_ppp dump mac and vlan function and change the hikptool permission to 0500
* Wed Nov 16 2022 veega2022 <zhuweijia@huawei.com> 1.0.0-4 * Wed Nov 16 2022 veega2022 <zhuweijia@huawei.com> 1.0.0-4
- change the hikptool permission to 4550 - change the hikptool permission to 4550