!40 添加安全配置加固工具
From: @jinlun123123 Reviewed-by: @HuaxinLuGitee Signed-off-by: @HuaxinLuGitee
This commit is contained in:
commit
f6a529361b
BIN
secpaver-secconf-1.0.0.zip
Normal file
BIN
secpaver-secconf-1.0.0.zip
Normal file
Binary file not shown.
@ -2,12 +2,13 @@
|
|||||||
Name: secpaver
|
Name: secpaver
|
||||||
Summary: Security policy development tool
|
Summary: Security policy development tool
|
||||||
Version: 1.0.2
|
Version: 1.0.2
|
||||||
Release: 11
|
Release: 12
|
||||||
License: MulanPSL-2.0
|
License: MulanPSL-2.0
|
||||||
URL: https://gitee.com/openeuler/secpaver
|
URL: https://gitee.com/openeuler/secpaver
|
||||||
Source: https://gitee.com/openeuler/secpaver/repository/archive/%{name}-%{version}.tar.gz
|
Source: https://gitee.com/openeuler/secpaver/repository/archive/%{name}-%{version}.tar.gz
|
||||||
#source1 version sys@v0.0.0-20220908164124-27713097b956
|
#source1 version sys@v0.0.0-20220908164124-27713097b956
|
||||||
Source1: sys.tar.gz
|
Source1: sys.tar.gz
|
||||||
|
Source2: secpaver-secconf-1.0.0.zip
|
||||||
|
|
||||||
Patch0001: dont-do-daemon-reload-in-make-install.patch
|
Patch0001: dont-do-daemon-reload-in-make-install.patch
|
||||||
Patch0002: set-default-log-path.patch
|
Patch0002: set-default-log-path.patch
|
||||||
@ -27,6 +28,13 @@ Requires: %{name}-plugin = %{version}-%{release}
|
|||||||
%description
|
%description
|
||||||
Security policy development tool
|
Security policy development tool
|
||||||
|
|
||||||
|
%package secconf
|
||||||
|
Summary: Security feature configuration hardening tool
|
||||||
|
License: MuLan PSL v2
|
||||||
|
|
||||||
|
%description secconf
|
||||||
|
Security feature configuration hardening tool
|
||||||
|
|
||||||
%package selinux
|
%package selinux
|
||||||
Summary: SELinux plugin for secPaver
|
Summary: SELinux plugin for secPaver
|
||||||
License: MuLan PSL v2
|
License: MuLan PSL v2
|
||||||
@ -44,14 +52,21 @@ SELinux plugin for secPaver.
|
|||||||
rm -rf vendor/golang.org/x/sys
|
rm -rf vendor/golang.org/x/sys
|
||||||
tar -xf %{SOURCE1} -C vendor/golang.org/x/
|
tar -xf %{SOURCE1} -C vendor/golang.org/x/
|
||||||
%endif
|
%endif
|
||||||
|
unzip %{SOURCE2}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build everything
|
%make_build everything
|
||||||
|
cd ./secpaver-secconf-1.0.0
|
||||||
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install DESTDIR="%{buildroot}"
|
%make_install DESTDIR="%{buildroot}"
|
||||||
|
cd ./secpaver-secconf-1.0.0
|
||||||
|
%make_install DESTDIR="%{buildroot}"
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
cd ./secpaver-secconf-1.0.0
|
||||||
|
make test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0600,root,root,0700)
|
%defattr(0600,root,root,0700)
|
||||||
@ -76,6 +91,12 @@ tar -xf %{SOURCE1} -C vendor/golang.org/x/
|
|||||||
%{_datadir}/secpaver/scripts/selinux/config
|
%{_datadir}/secpaver/scripts/selinux/config
|
||||||
%attr(0700,root,root) %{_datadir}/secpaver/scripts/selinux/*.sh
|
%attr(0700,root,root) %{_datadir}/secpaver/scripts/selinux/*.sh
|
||||||
|
|
||||||
|
%files secconf
|
||||||
|
%defattr(0600,root,root,0700)
|
||||||
|
%attr(0500,root,root) %{_bindir}/sec_conf
|
||||||
|
%dir %{_datadir}/secpaver/scripts/sec_conf
|
||||||
|
%{_datadir}/secpaver/scripts/sec_conf/*
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post pavd.service
|
%systemd_post pavd.service
|
||||||
|
|
||||||
@ -86,6 +107,9 @@ tar -xf %{SOURCE1} -C vendor/golang.org/x/
|
|||||||
%systemd_postun_with_restart pavd.service
|
%systemd_postun_with_restart pavd.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 25 2024 jinlun <jinlun@huawei.com> - 1.0.2-12
|
||||||
|
- add sec_conf feature
|
||||||
|
|
||||||
* Sun Jun 09 2024 yueyuankun <yueyuankun@kylinos.cn> - 1.0.2-11
|
* Sun Jun 09 2024 yueyuankun <yueyuankun@kylinos.cn> - 1.0.2-11
|
||||||
- Fix build on loongarch64
|
- Fix build on loongarch64
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user