BuildArch: noarch Name: linglong-selinux Version: 44 Release: 1%{?dist} Source0: https://github.com/EvernightFedora/linglong-selinux/archive/refs/heads/44.zip License: LGPL-2.1-or-later Group: Unspecified Summary: SELinux policy module for linglong Distribution: Evernight Vista Requires(post): /bin/sh Requires(postun): /bin/sh Requires(post): libselinux-utils Requires(post): policycoreutils Requires(post): policycoreutils-python-utils Requires: linglong-bin Requires: linglong-box #Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 #Requires: rpmlib(FileDigests) <= 4.6.0-1 #Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 #Requires: rpmlib(PayloadIsZstd) <= 5.4.18-1 Requires: selinux-policy >= 41.39 Requires(post): selinux-policy-base >= 41.39 %prep %setup -q -n linglong-selinux-44 %install mkdir -p %{buildroot}/ rm -rf /builddir/build/BUILD/linglong-selinux-44-build/linglong-selinux-44/LICENSE cp -r /builddir/build/BUILD/linglong-selinux-44-build/linglong-selinux-44/* %{buildroot} %description This package contains the SELinux policy module for linglong. %files %attr(0644, root, root) "/usr/share/selinux/packages/my-llbox.te" %attr(0644, root, root) "/usr/share/selinux/packages/my-llbox.pp" %post -p /bin/sh if [ -e /etc/selinux/config ]; then . /etc/selinux/config fi _policytype= if [ -z "${_policytype}" ]; then _policytype="targeted" fi if [ "${SELINUXTYPE}" = "${_policytype}" ]; then rm -rf /var/lib/selinux/${_policytype}/active/modules/400/extra_varrun || : semodule -n -s ${_policytype} -X 200 -i /usr/share/selinux/packages/my-llbox.pp || : selinuxenabled && load_policy || : /usr/libexec/selinux/varrun-convert.sh ${_policytype} || : fi %postun -p /bin/sh if [ $1 -eq 0 ]; then if [ -e /etc/selinux/config ]; then . /etc/selinux/config fi _policytype= if [ -z "${_policytype}" ]; then _policytype="targeted" fi if [ $1 -eq 0 ]; then if [ "${SELINUXTYPE}" = "${_policytype}" ]; then rm -rf /var/lib/selinux/${_policytype}/active/modules/400/extra_varrun || : semodule -n -X 200 -s ${_policytype} -r /usr/share/selinux/packages/my-llbox.pp &> /dev/null || : selinuxenabled && load_policy || : /usr/libexec/selinux/varrun-convert.sh ${_policytype} || : fi fi fi %changelog * Tue Feb 17 2026 KairikiFedora <13278297951@sina.cn> 44-1 - Update to Evernight Vista 44. * Tue Nov 25 2025 Evernight Vista Team - 43.0-1 - First Edition