BuildArch: noarch Name: linglong-selinux Version: 43.0 Release: 1.fc43 Source0: https://github.com/EvernightFedora/linglong-selinux/archive/refs/heads/main.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-main %install mkdir -p %{buildroot}/ rm -rf /builddir/build/BUILD/linglong-selinux-43.0-build/linglong-selinux-main/LICENSE cp -r /builddir/build/BUILD/linglong-selinux-43.0-build/linglong-selinux-main/* %{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 Nov 25 2025 Evernight Vista Team - 43.0-1 - First Edition