Speed up startup time of sepolicy gui
- Clean up ports screen to only show enabled ports. - Update to upstream * Remove import policycoreutils.default_encoding_utf8 from semanage from Dan Walsh. * Make yum/extract_rpms optional for sepolicy generate from Dan Walsh. * Add test suite for audit2allow and sepolgen-ifgen from Dan Walsh.
This commit is contained in:
parent
6e2e7ad1d8
commit
5d97d38d1b
File diff suppressed because it is too large
Load Diff
@ -2,11 +2,11 @@
|
|||||||
%global libsepolver 2.1.9-1
|
%global libsepolver 2.1.9-1
|
||||||
%global libsemanagever 2.1.10-1
|
%global libsemanagever 2.1.10-1
|
||||||
%global libselinuxver 2.1.13-1
|
%global libselinuxver 2.1.13-1
|
||||||
%global sepolgenver 1.2
|
%global sepolgenver 1.2.1
|
||||||
|
|
||||||
Summary: SELinux policy core utilities
|
Summary: SELinux policy core utilities
|
||||||
Name: policycoreutils
|
Name: policycoreutils
|
||||||
Version: 2.2
|
Version: 2.2.2
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -16,9 +16,9 @@ Source1:git://oss.tresys.com/git/selinux/sepolgen-%{sepolgenver}.tgz
|
|||||||
URL: http://www.selinuxproject.org
|
URL: http://www.selinuxproject.org
|
||||||
Source2: policycoreutils_man_ru2.tar.bz2
|
Source2: policycoreutils_man_ru2.tar.bz2
|
||||||
Source3: system-config-selinux.png
|
Source3: system-config-selinux.png
|
||||||
Source4: sepolicy-help.tgz
|
Source4: sepolicy-icons.tgz
|
||||||
Patch: policycoreutils-rhat.patch
|
Patch: policycoreutils-rhat.patch
|
||||||
Patch1: policycoreutils-sepolgen.patch
|
#Patch1: policycoreutils-sepolgen.patch
|
||||||
Obsoletes: policycoreutils < 2.0.61-2
|
Obsoletes: policycoreutils < 2.0.61-2
|
||||||
Conflicts: filesystem < 3
|
Conflicts: filesystem < 3
|
||||||
Provides: /sbin/fixfiles
|
Provides: /sbin/fixfiles
|
||||||
@ -49,7 +49,7 @@ to switch roles.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -a 1
|
%setup -q -a 1
|
||||||
%patch -p2 -b .rhat
|
%patch -p2 -b .rhat
|
||||||
%patch1 -p2 -b .sepolgen -d sepolgen-%{sepolgenver}
|
#%patch1 -p2 -b .sepolgen -d sepolgen-%{sepolgenver}
|
||||||
cp %{SOURCE3} gui/
|
cp %{SOURCE3} gui/
|
||||||
tar xvf %{SOURCE4}
|
tar xvf %{SOURCE4}
|
||||||
|
|
||||||
@ -68,10 +68,12 @@ mkdir -p %{buildroot}%{_mandir}/man8
|
|||||||
cp COPYING %{buildroot}/%{_usr}/share/doc/%{name}/
|
cp COPYING %{buildroot}/%{_usr}/share/doc/%{name}/
|
||||||
|
|
||||||
make LSPP_PRIV=y DESTDIR="%{buildroot}" SBINDIR="%{buildroot}%{_sbindir}" LIBDIR="%{buildroot}%{_libdir}" SEMODULE_PATH="/usr/sbin" install
|
make LSPP_PRIV=y DESTDIR="%{buildroot}" SBINDIR="%{buildroot}%{_sbindir}" LIBDIR="%{buildroot}%{_libdir}" SEMODULE_PATH="/usr/sbin" install
|
||||||
|
make PYTHON=python3 LSPP_PRIV=y DESTDIR="%{buildroot}" SBINDIR="%{buildroot}%{_sbindir}" LIBDIR="%{buildroot}%{_libdir}" SEMODULE_PATH="/usr/sbin" install
|
||||||
|
|
||||||
# Systemd
|
# Systemd
|
||||||
rm -rf %{buildroot}/%{_sysconfdir}/rc.d/init.d/restorecond
|
rm -rf %{buildroot}/%{_sysconfdir}/rc.d/init.d/restorecond
|
||||||
|
|
||||||
|
make -C sepolgen-%{sepolgenver} DESTDIR="%{buildroot}" SBINDIR="%{buildroot}%{_sbindir}" LIBDIR="%{buildroot}%{_libdir}" install
|
||||||
make -C sepolgen-%{sepolgenver} DESTDIR="%{buildroot}" SBINDIR="%{buildroot}%{_sbindir}" LIBDIR="%{buildroot}%{_libdir}" install
|
make -C sepolgen-%{sepolgenver} DESTDIR="%{buildroot}" SBINDIR="%{buildroot}%{_sbindir}" LIBDIR="%{buildroot}%{_libdir}" install
|
||||||
|
|
||||||
tar -jxf %{SOURCE2} -C %{buildroot}/
|
tar -jxf %{SOURCE2} -C %{buildroot}/
|
||||||
@ -105,8 +107,8 @@ Group: System Environment/Base
|
|||||||
Requires:policycoreutils = %{version}-%{release}
|
Requires:policycoreutils = %{version}-%{release}
|
||||||
Requires:libsemanage-python >= %{libsemanagever} libselinux-python libcgroup
|
Requires:libsemanage-python >= %{libsemanagever} libselinux-python libcgroup
|
||||||
Requires:audit-libs-python >= %{libauditver}
|
Requires:audit-libs-python >= %{libauditver}
|
||||||
Requires(pre): python >= 2.6
|
|
||||||
Obsoletes: policycoreutils < 2.0.61-2
|
Obsoletes: policycoreutils < 2.0.61-2
|
||||||
|
Requires: checkpolicy
|
||||||
Requires: python-IPy yum
|
Requires: python-IPy yum
|
||||||
|
|
||||||
%description python
|
%description python
|
||||||
@ -121,8 +123,13 @@ an SELinux environment.
|
|||||||
%{_bindir}/audit2why
|
%{_bindir}/audit2why
|
||||||
%{_mandir}/man1/audit2allow.1*
|
%{_mandir}/man1/audit2allow.1*
|
||||||
%{_mandir}/ru/man1/audit2allow.1*
|
%{_mandir}/ru/man1/audit2allow.1*
|
||||||
|
%{_bindir}/semodule_package
|
||||||
|
%{_mandir}/man8/semodule_package.8*
|
||||||
|
%{_mandir}/ru/man8/semodule_package.8*
|
||||||
%{_mandir}/man1/audit2why.1*
|
%{_mandir}/man1/audit2why.1*
|
||||||
%{python_sitearch}/seobject.py*
|
%dir %{python_sitelib}/seobject
|
||||||
|
%{python_sitelib}/seobject/__init__.py*
|
||||||
|
%{python_sitelib}/seobject*.egg-info
|
||||||
%{python_sitearch}/sepolgen
|
%{python_sitearch}/sepolgen
|
||||||
%dir %{python_sitearch}/sepolicy
|
%dir %{python_sitearch}/sepolicy
|
||||||
%{python_sitearch}/sepolicy/*so
|
%{python_sitearch}/sepolicy/*so
|
||||||
@ -147,19 +154,33 @@ an SELinux environment.
|
|||||||
%{_mandir}/man8/sandbox.8*
|
%{_mandir}/man8/sandbox.8*
|
||||||
%{_mandir}/man8/semanage*.8*
|
%{_mandir}/man8/semanage*.8*
|
||||||
%{_mandir}/ru/man8/semanage.8*
|
%{_mandir}/ru/man8/semanage.8*
|
||||||
%{_datadir}/system-config-selinux/selinux_server.py
|
|
||||||
%{_datadir}/dbus-1/system-services/org.selinux.service
|
|
||||||
%{_datadir}/polkit-1/actions/org.selinux.policy
|
|
||||||
%{_datadir}/polkit-1/actions/org.selinux.config.policy
|
|
||||||
%{_datadir}/bash-completion/completions/semanage
|
%{_datadir}/bash-completion/completions/semanage
|
||||||
%{_datadir}/bash-completion/completions/setsebool
|
%{_datadir}/bash-completion/completions/setsebool
|
||||||
|
%dir %{python3_sitelib}/seobject
|
||||||
|
%{python3_sitelib}/seobject/__init__.py*
|
||||||
|
%{python3_sitelib}/seobject/__pycache__/*
|
||||||
|
%{python3_sitelib}/seobject*.egg-info
|
||||||
|
%dir %{python3_sitearch}/sepolicy
|
||||||
|
%{python3_sitearch}/sepolicy/*so
|
||||||
|
%{python3_sitearch}/sepolicy/templates
|
||||||
|
%dir %{python3_sitearch}/sepolicy/help
|
||||||
|
%{python3_sitearch}/sepolicy/help/*
|
||||||
|
%{python3_sitearch}/sepolicy/__init__.py*
|
||||||
|
%{python3_sitearch}/sepolicy/booleans.py*
|
||||||
|
%{python3_sitearch}/sepolicy/communicate.py*
|
||||||
|
%{python3_sitearch}/sepolicy/interface.py*
|
||||||
|
%{python3_sitearch}/sepolicy/manpage.py*
|
||||||
|
%{python3_sitearch}/sepolicy/network.py*
|
||||||
|
%{python3_sitearch}/sepolicy/transition.py*
|
||||||
|
%{python3_sitearch}/sepolicy/sedbus.py*
|
||||||
|
%{python3_sitearch}/sepolicy*.egg-info
|
||||||
|
%{python3_sitearch}/sepolicy/__pycache__/*
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: SELinux policy core policy devel utilities
|
Summary: SELinux policy core policy devel utilities
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Requires: policycoreutils-python = %{version}-%{release}
|
Requires: policycoreutils-python = %{version}-%{release}
|
||||||
Requires: /usr/bin/make
|
Requires: /usr/bin/make
|
||||||
Requires: checkpolicy
|
|
||||||
Requires: selinux-policy-devel
|
Requires: selinux-policy-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -173,6 +194,7 @@ The policycoreutils-devel package contains the management tools use to develop p
|
|||||||
/var/lib/sepolgen/perm_map
|
/var/lib/sepolgen/perm_map
|
||||||
%{_bindir}/sepolicy
|
%{_bindir}/sepolicy
|
||||||
%{python_sitearch}/sepolicy/generate.py*
|
%{python_sitearch}/sepolicy/generate.py*
|
||||||
|
%{python3_sitearch}/sepolicy/generate.py*
|
||||||
%{_mandir}/man8/sepolgen.8*
|
%{_mandir}/man8/sepolgen.8*
|
||||||
%{_mandir}/man8/sepolicy-booleans.8*
|
%{_mandir}/man8/sepolicy-booleans.8*
|
||||||
%{_mandir}/man8/sepolicy-generate.8*
|
%{_mandir}/man8/sepolicy-generate.8*
|
||||||
@ -183,6 +205,17 @@ The policycoreutils-devel package contains the management tools use to develop p
|
|||||||
%{_mandir}/man8/sepolicy-manpage.8*
|
%{_mandir}/man8/sepolicy-manpage.8*
|
||||||
%{_mandir}/man8/sepolicy-transition.8*
|
%{_mandir}/man8/sepolicy-transition.8*
|
||||||
%{_usr}/share/bash-completion/completions/sepolicy
|
%{_usr}/share/bash-completion/completions/sepolicy
|
||||||
|
%{_bindir}/semodule_deps
|
||||||
|
%{_bindir}/semodule_expand
|
||||||
|
%{_bindir}/semodule_link
|
||||||
|
%{_bindir}/semodule_unpackage
|
||||||
|
%{_mandir}/man8/semodule_deps.8*
|
||||||
|
%{_mandir}/ru/man8/semodule_deps.8*
|
||||||
|
%{_mandir}/man8/semodule_expand.8*
|
||||||
|
%{_mandir}/ru/man8/semodule_expand.8*
|
||||||
|
%{_mandir}/man8/semodule_link.8*
|
||||||
|
%{_mandir}/ru/man8/semodule_link.8*
|
||||||
|
%{_mandir}/man8/semodule_unpackage.8*
|
||||||
|
|
||||||
%package sandbox
|
%package sandbox
|
||||||
Summary: SELinux sandbox utilities
|
Summary: SELinux sandbox utilities
|
||||||
@ -216,9 +249,12 @@ or level of a logged in user.
|
|||||||
|
|
||||||
%files newrole
|
%files newrole
|
||||||
%attr(0755,root,root) %caps(cap_dac_read_search,cap_setpcap,cap_audit_write,cap_sys_admin,cap_fowner,cap_chown,cap_dac_override=pe) %{_bindir}/newrole
|
%attr(0755,root,root) %caps(cap_dac_read_search,cap_setpcap,cap_audit_write,cap_sys_admin,cap_fowner,cap_chown,cap_dac_override=pe) %{_bindir}/newrole
|
||||||
|
%{_sbindir}/run_init
|
||||||
|
%{_mandir}/man8/run_init.8*
|
||||||
|
%{_mandir}/ru/man8/run_init.8*
|
||||||
%{_mandir}/man1/newrole.1.gz
|
%{_mandir}/man1/newrole.1.gz
|
||||||
%config(noreplace) %{_sysconfdir}/pam.d/newrole
|
%config(noreplace) %{_sysconfdir}/pam.d/newrole
|
||||||
|
%config(noreplace) %{_sysconfdir}/pam.d/run_init
|
||||||
|
|
||||||
%package gui
|
%package gui
|
||||||
Summary: SELinux configuration GUI
|
Summary: SELinux configuration GUI
|
||||||
@ -246,9 +282,17 @@ system-config-selinux is a utility for managing the SELinux environment
|
|||||||
%{_datadir}/system-config-selinux/*.glade
|
%{_datadir}/system-config-selinux/*.glade
|
||||||
%{python_sitearch}/sepolicy/gui.py*
|
%{python_sitearch}/sepolicy/gui.py*
|
||||||
%{python_sitearch}/sepolicy/sepolicy.glade
|
%{python_sitearch}/sepolicy/sepolicy.glade
|
||||||
|
%{python3_sitearch}/sepolicy/gui.py*
|
||||||
|
%{python3_sitearch}/sepolicy/sepolicy.glade
|
||||||
|
%{_datadir}/icons/hicolor/*/apps/sepolicy.png
|
||||||
|
%{_datadir}/pixmaps/sepolicy.png
|
||||||
%{_mandir}/man8/system-config-selinux.8*
|
%{_mandir}/man8/system-config-selinux.8*
|
||||||
%{_mandir}/man8/selinux-polgengui.8*
|
%{_mandir}/man8/selinux-polgengui.8*
|
||||||
%{_mandir}/man8/sepolicy-gui.8*
|
%{_mandir}/man8/sepolicy-gui.8*
|
||||||
|
%{_datadir}/system-config-selinux/selinux_server.py
|
||||||
|
%{_datadir}/dbus-1/system-services/org.selinux.service
|
||||||
|
%{_datadir}/polkit-1/actions/org.selinux.policy
|
||||||
|
%{_datadir}/polkit-1/actions/org.selinux.config.policy
|
||||||
|
|
||||||
%post gui
|
%post gui
|
||||||
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
@ -266,42 +310,24 @@ fi
|
|||||||
%{_sbindir}/restorecon
|
%{_sbindir}/restorecon
|
||||||
%{_sbindir}/fixfiles
|
%{_sbindir}/fixfiles
|
||||||
%{_sbindir}/setfiles
|
%{_sbindir}/setfiles
|
||||||
%{_sbindir}/run_init
|
|
||||||
%{_sbindir}/load_policy
|
%{_sbindir}/load_policy
|
||||||
%{_sbindir}/genhomedircon
|
%{_sbindir}/genhomedircon
|
||||||
%{_sbindir}/setsebool
|
%{_sbindir}/setsebool
|
||||||
%{_sbindir}/semodule
|
%{_sbindir}/semodule
|
||||||
%{_sbindir}/sestatus
|
%{_sbindir}/sestatus
|
||||||
%{_bindir}/secon
|
%{_bindir}/secon
|
||||||
%{_bindir}/semodule_deps
|
|
||||||
%{_bindir}/semodule_expand
|
|
||||||
%{_bindir}/semodule_link
|
|
||||||
%{_bindir}/semodule_package
|
|
||||||
%{_bindir}/semodule_unpackage
|
|
||||||
%config(noreplace) %{_sysconfdir}/sestatus.conf
|
%config(noreplace) %{_sysconfdir}/sestatus.conf
|
||||||
%config(noreplace) %{_sysconfdir}/pam.d/run_init
|
|
||||||
# selinux-policy Requires: policycoreutils, so we own this set of directories and our files within them
|
# selinux-policy Requires: policycoreutils, so we own this set of directories and our files within them
|
||||||
%{_mandir}/man5/selinux_config.5.gz
|
%{_mandir}/man5/selinux_config.5.gz
|
||||||
%{_mandir}/man5/sestatus.conf.5.gz
|
%{_mandir}/man5/sestatus.conf.5.gz
|
||||||
%{_mandir}/man8/fixfiles.8*
|
%{_mandir}/man8/fixfiles.8*
|
||||||
%{_mandir}/ru/man8/fixfiles.8*
|
%{_mandir}/ru/man8/fixfiles.8*
|
||||||
%{_mandir}/man8/run_init.8*
|
|
||||||
%{_mandir}/ru/man8/run_init.8*
|
|
||||||
%{_mandir}/man8/load_policy.8*
|
%{_mandir}/man8/load_policy.8*
|
||||||
%{_mandir}/ru/man8/load_policy.8*
|
%{_mandir}/ru/man8/load_policy.8*
|
||||||
%{_mandir}/man8/restorecon.8*
|
%{_mandir}/man8/restorecon.8*
|
||||||
%{_mandir}/ru/man8/restorecon.8*
|
%{_mandir}/ru/man8/restorecon.8*
|
||||||
%{_mandir}/man8/semodule.8*
|
%{_mandir}/man8/semodule.8*
|
||||||
%{_mandir}/ru/man8/semodule.8*
|
%{_mandir}/ru/man8/semodule.8*
|
||||||
%{_mandir}/man8/semodule_deps.8*
|
|
||||||
%{_mandir}/ru/man8/semodule_deps.8*
|
|
||||||
%{_mandir}/man8/semodule_expand.8*
|
|
||||||
%{_mandir}/ru/man8/semodule_expand.8*
|
|
||||||
%{_mandir}/man8/semodule_link.8*
|
|
||||||
%{_mandir}/ru/man8/semodule_link.8*
|
|
||||||
%{_mandir}/man8/semodule_package.8*
|
|
||||||
%{_mandir}/man8/semodule_unpackage.8*
|
|
||||||
%{_mandir}/ru/man8/semodule_package.8*
|
|
||||||
%{_mandir}/man8/sestatus.8*
|
%{_mandir}/man8/sestatus.8*
|
||||||
%{_mandir}/ru/man8/sestatus.8*
|
%{_mandir}/ru/man8/sestatus.8*
|
||||||
%{_mandir}/man8/setfiles.8*
|
%{_mandir}/man8/setfiles.8*
|
||||||
@ -344,6 +370,17 @@ The policycoreutils-restorecond package contains the restorecond service.
|
|||||||
%systemd_postun_with_restart restorecond.service
|
%systemd_postun_with_restart restorecond.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 15 2013 Dan Walsh <dwalsh@redhat.com> - 2.2.2-1
|
||||||
|
- Speed up startup time of sepolicy gui
|
||||||
|
- Clean up ports screen to only show enabled ports.
|
||||||
|
- Update to upstream
|
||||||
|
* Remove import policycoreutils.default_encoding_utf8 from semanage from Dan Walsh.
|
||||||
|
* Make yum/extract_rpms optional for sepolicy generate from Dan Walsh.
|
||||||
|
* Add test suite for audit2allow and sepolgen-ifgen from Dan Walsh.
|
||||||
|
|
||||||
|
* Thu Oct 31 2013 Dan Walsh <dwalsh@redhat.com> - 2.2-2
|
||||||
|
- Shift around some of the files to more appropriate packages.
|
||||||
|
* semodule_* packages are required for devel.
|
||||||
* Thu Oct 31 2013 Dan Walsh <dwalsh@redhat.com> - 2.2-1
|
* Thu Oct 31 2013 Dan Walsh <dwalsh@redhat.com> - 2.2-1
|
||||||
- Update to upstream
|
- Update to upstream
|
||||||
* Properly build the swig exception file from Laurent Bigonville.
|
* Properly build the swig exception file from Laurent Bigonville.
|
||||||
|
BIN
sepolicy-icons.tgz
Normal file
BIN
sepolicy-icons.tgz
Normal file
Binary file not shown.
4
sources
4
sources
@ -1,3 +1,3 @@
|
|||||||
59d33101d57378ce69889cc078addf90 policycoreutils_man_ru2.tar.bz2
|
59d33101d57378ce69889cc078addf90 policycoreutils_man_ru2.tar.bz2
|
||||||
12a573b3e0e40c932a8b08baf7105d4c sepolgen-1.2.tgz
|
332411668be7367aa74257048ac762d6 policycoreutils-2.2.2.tgz
|
||||||
220ac2cb43d6f8882de22d7f6b65545e policycoreutils-2.2.tgz
|
e9134b52e6620c14cbce9234a6b67b20 sepolgen-1.2.1.tgz
|
||||||
|
Loading…
Reference in New Issue
Block a user