Sync from SUSE:SLFO:Main mcstrans revision 49cb685cf243725e6eb64bf162b3685f

This commit is contained in:
Adrian Schröter 2024-09-06 15:28:09 +02:00
commit 2bb3d73c4f
7 changed files with 475 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

View File

@ -0,0 +1,23 @@
Index: mcstrans-3.5/src/mcstrans.service
===================================================================
--- mcstrans-3.5.orig/src/mcstrans.service
+++ mcstrans-3.5/src/mcstrans.service
@@ -7,7 +7,17 @@ Before=shutdown.target sysinit.target
Conflicts=shutdown.target
[Service]
-ExecStart=/sbin/mcstransd -f
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
+ExecStart=/usr/sbin/mcstransd -f
RuntimeDirectory=setrans
RuntimeDirectoryPreserve=true

BIN
mcstrans-3.7.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

16
mcstrans-3.7.tar.gz.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEG+LA/wiUliMQL9JWRpWIHCVFCNEFAmZ8NeEACgkQRpWIHCVF
CNHemg//TbdBIP/nEUbVA9YRbxwFcje0AppPVGV37TJ7/vO3boPNzW4aXS1SBiFF
7zwW8Byo3D8OOAqYefYGazHxcKRfKw+p3NmGTRbD5eyz6K4RXvbp9EdKh6V0hs4p
pCGhDxuD1wU+1mJvx3bzZpgSgbbmxFntT/8nlfsf8b7en0+/kEi5iMVz34XMLpZT
EM9cOkioaEWYkzAqPI6n9YDcDXTpghH+CfrBCuf89XCUE7nSQeBDJzE/MSFLfVBc
P0gZnqm6PaOH07IoNCFNICEyAfhoN8KybhwRsYMG9oCPXORkBYHrPEmM8dpGgNps
rHyfSeN6+5kP1tDrhemndklkROb6i+ktQFMCWSUdiCjXyY+ap5LBnigdo5Tu4tFs
mCSvi7jJBXKYsR5EMvRv4/1fPXAEVMc2haD9MjIdPybwJmy3gj/vuesFisOeqwF6
PxLr/23TMb+ONx/9CyXgqSHvjlDvxZ5ntU1AEerZZs0AGQ7CbIOSPEYuDoyNK/2A
2Mlqxy97iF/PmUIUqyQxvHIFrFxXz8gcqTJZ+yN14Wmn0Li7pVFoF5jdltv6nobr
stE1UrBwOX/Fcse7VnYD7Ri9vIk8B/7z10Q9VAsIVIZGzCHIX7Uy9yAgVqwVuI6o
ZAe9J5hQ6X1G9fO56eLClIT13y1wsiTX/cjb+yrDNKoYoo/4zIA=
=xUkV
-----END PGP SIGNATURE-----

202
mcstrans.changes Normal file
View File

@ -0,0 +1,202 @@
-------------------------------------------------------------------
Mon Jul 1 08:04:02 UTC 2024 - Cathy Hu <cathy.hu@suse.com>
- Update to version 3.7
https://github.com/SELinuxProject/selinux/releases/tag/3.7
* Bugfixes:
* mcstrans: free constraint in error branch
* mcstrans: ensure transitivity in compare functions
* mcstrans: check memory allocations
-------------------------------------------------------------------
Tue Dec 19 12:02:01 UTC 2023 - Cathy Hu <cathy.hu@suse.com>
- Update to version 3.6
https://github.com/SELinuxProject/selinux/releases/tag/3.6
* Add notself support for neverallow rules
* Improve man pages
* man pages: Remove the Russian translations
* Add notself and other support to CIL
* Add support for deny rules
* Translations updated from
https://translate.fedoraproject.org/projects/selinux/
* Bug fixes
- Remove keys from keyring since they expired:
- E853C1848B0185CF42864DF363A8AD4B982C4373
Petr Lautrbach <plautrba@redhat.com>
- 63191CE94183098689CAB8DB7EF137EC935B0EAF
Jason Zaman <jasonzaman@gmail.com>
- Add key to keyring:
- B8682847764DF60DF52D992CBC3905F235179CF1
Petr Lautrbach <lautrbach@redhat.com>
-------------------------------------------------------------------
Mon Nov 27 10:33:24 UTC 2023 - Hu <cathy.hu@suse.com>
- Change deprecated `%patch1 -p1` syntax to supported `%patch -P1 -p1`
(bsc#1216669)
-------------------------------------------------------------------
Fri Feb 24 07:51:59 UTC 2023 - Johannes Segitz <jsegitz@suse.com>
- Update to version 3.5
* preserve runtime directory
- Refreshed harden_mcstrans.service.patch
- Added additional developer key (Jason Zaman)
-------------------------------------------------------------------
Mon May 9 10:49:13 UTC 2022 - Johannes Segitz <jsegitz@suse.com>
- Update to version 3.4
* Port to PCRE2
- Dropped patches
* add_includes.patch: Upstream
* mcstrans-writepid.patch: Upstream
-------------------------------------------------------------------
Thu Nov 25 13:54:30 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Finish UsrMerge (bsc#1191075)
-------------------------------------------------------------------
Thu Nov 11 13:51:39 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Update to version 3.3
* No user-visible changes
-------------------------------------------------------------------
Wed Oct 6 11:59:35 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
* harden_mcstrans.service.patch
-------------------------------------------------------------------
Tue Mar 9 09:15:26 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Update to version 3.2
* No user-visible changes, only version bump.
-------------------------------------------------------------------
Tue Jul 14 08:34:48 UTC 2020 - Johannes Segitz <jsegitz@suse.com>
- Update to version 3.1
* fix memory leak in new_context_str
-------------------------------------------------------------------
Tue Mar 3 12:26:40 UTC 2020 - Johannes Segitz <jsegitz@suse.de>
- Update to version 3.0
* Add reference to setools.conf man page in the daemon one
-------------------------------------------------------------------
Tue Aug 27 10:25:48 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Avoid use of ®/™ signs in specfiles as per guidelines.
-------------------------------------------------------------------
Wed Jun 12 15:01:20 UTC 2019 - Dominique Leuenberger <dimstar@opensuse.org>
- BuildRequire pkgconfig(systemd) instead of systemd: allow OBS to
shortcut the build queues by allowing usage of systemd-mini
-------------------------------------------------------------------
Wed Mar 20 15:14:52 UTC 2019 - jsegitz@suse.com
- Update to version 2.9
* Fix check in raw_color()
* remove unused getpeercon_raw() call
-------------------------------------------------------------------
Tue Dec 4 11:39:52 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- One grammar fix, and use %make_install.
-------------------------------------------------------------------
Fri Nov 23 10:58:47 UTC 2018 - jsegitz@suse.com
- Dropped mcstransd.service, use the provided service file
- Install example configs
- Fixed source URL
-------------------------------------------------------------------
Wed Oct 17 11:55:59 UTC 2018 - jsegitz@suse.com
- Update to version 2.8 (bsc#1111732)
For changes please see
https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/RELEASE-20180524.txt
- Renamed mcstrans-2.7-writepid.patch to mcstrans-writepid.patch
-------------------------------------------------------------------
Wed May 16 07:21:45 UTC 2018 - mcepl@suse.com
- Rebase to 2.7
For changes please see
https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/RELEASE-20170804.txt
- Renamed mcstrans-0.3.3-writepid.patch to
mcstrans-2.7-writepid.patch
-------------------------------------------------------------------
Tue Sep 5 08:48:52 UTC 2017 - jsegitz@suse.com
- Added add_includes.patch to add additional includes and fix
Factory build
-------------------------------------------------------------------
Wed Jun 17 14:15:33 UTC 2015 - jsegitz@novell.com
- fixed wrong label in /run preventing startup
-------------------------------------------------------------------
Mon Sep 8 08:07:00 UTC 2014 - jsegitz@suse.com
- altered package to use systemd. Removed
mcstrans-0.3.3-initscript.patch since it's no longer necessary
- added mcstrans-0.3.3-writepid.patch to write pid files to the
correct location
-------------------------------------------------------------------
Mon Dec 10 13:00:43 UTC 2012 - meissner@suse.com
- provide setransd, like in redhat (covered by mcstrans these days)
-------------------------------------------------------------------
Tue Aug 7 13:19:20 UTC 2012 - meissner@suse.com
- updated to 0.3.3 , tarball taken from redhat source rpm.
-------------------------------------------------------------------
Thu Apr 5 13:50:13 UTC 2012 - dvaleev@suse.com
- add LIBDIR, so ppc and ppc64 can build
-------------------------------------------------------------------
Mon Mar 26 13:11:29 UTC 2012 - vcizek@suse.com
- removed use of /var/lock/subsys in init script [bnc#714633]
-------------------------------------------------------------------
Mon May 3 12:32:09 CEST 2010 - prusnak@suse.cz
- create /var/run/setrans directory in initscript [Feature#303793]
-------------------------------------------------------------------
Thu Jul 16 13:37:35 CEST 2009 - prusnak@suse.cz
- remove check and rename from %post section (not needed)
-------------------------------------------------------------------
Tue Jun 23 13:17:38 CEST 2009 - prusnak@suse.cz
- require libsepol-devel-static
-------------------------------------------------------------------
Wed May 27 14:19:52 CEST 2009 - prusnak@suse.cz
- updated to 0.3.1
* Add inverse bit support
* Add color support from Eamon Walsh
-------------------------------------------------------------------
Thu Oct 16 16:04:41 CEST 2008 - prusnak@suse.cz
- created package (version 0.2.11)

110
mcstrans.keyring Normal file
View File

@ -0,0 +1,110 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGNZjyYBEACk7biPgvCVldNWq1CwVoJa/Fvc4T49tqxcc/sY4uVlGo6oSi4f
QcXE9XKPPBuRLmvpmMWvODQLzPxJM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Sjw62F
G3I4zK985GtrXAHEzN/Ffd17srl4mcRQ+8QM/a+XbF/8ugjE/RHhhFf8sWVAPutY
zVE8lF+uqcduPuq/rTcUBuzSVjnSRfXWqCokjh+ypUpHNUO8fZDzkTLuE5rwMG1x
pPueDBTzvoGDQRqc2eoXpJnDBmdlz83zHsoR2gIHcdqyc/hCV+fTvR8E0v9ZG3Jr
6RFgWdD008PsGxUevIDgMAYFwasZSTofEnzg49/WeIFU1rGB5HZVlmOJKZnKRuBi
TakEPw==
=odM9
-----END PGP PUBLIC KEY BLOCK-----

98
mcstrans.spec Normal file
View File

@ -0,0 +1,98 @@
#
# spec file for package mcstrans
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: mcstrans
Version: 3.7
Release: 0
Summary: SELinux Translation Daemon
License: GPL-2.0-or-later
Group: System/Management
URL: https://github.com/SELinuxProject/selinux/wiki
Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
Source2: mcstrans.keyring
Patch2: harden_mcstrans.service.patch
BuildRequires: aaa_base
BuildRequires: libcap-devel
BuildRequires: libselinux-devel >= 1.30.3
BuildRequires: libsepol-devel-static
BuildRequires: pcre-devel
BuildRequires: pkgconfig(systemd)
Requires: aaa_base
Provides: setransd
%{?systemd_requires}
%description
Security-enhanced Linux is a feature of the Linux kernel and a number
of utilities with enhanced security functionality designed to add
mandatory access controls to Linux. The Security-enhanced Linux
kernel contains new architectural components originally developed to
improve the security of the Flask operating system. These
architectural components provide general support for the enforcement
of many kinds of mandatory access control policies, including those
based on the concepts of Type Enforcement, Role-based Access
Control, and Multi-level Security.
mcstrans provides a translation daemon to translate SELinux categories
from internal representations to user defined representation.
%prep
%setup -q
%patch -P2 -p1
%build
export CFLAGS="%{optflags}"
make LIBDIR="%{_libdir}" %{?_smp_mflags}
%install
mkdir -p %{buildroot}/%{_lib}
mkdir -p %{buildroot}/%{_libdir}
mkdir -p %{buildroot}/%{_unitdir}
%make_install LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}/%{_lib}"
rm -f %{buildroot}%{_sbindir}/*
rm -f %{buildroot}%{_libdir}/*.a
rm %{buildroot}%{_sysconfdir}/rc.d/init.d/mcstrans*
rm -rf %{buildroot}%{_sysconfdir}/rc.d
mkdir -p %{buildroot}%{_datadir}/doc/packages/%{name}
cp -r share/examples %{buildroot}%{_datadir}/doc/packages/%{name}
mkdir -p %{buildroot}%{_sbindir}
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
mv %{buildroot}/sbin/mcstransd %{buildroot}/usr/sbin/mcstransd
%post
%service_add_post mcstrans.service
%preun
%service_del_preun mcstrans.service
%postun
%service_del_postun mcstrans.service
%pre
%service_add_pre mcstrans.service
%files
%{_unitdir}/mcstrans*.service
/usr/sbin/mcstransd
%{_sbindir}/rcmcstrans
%{_mandir}/man5/*.5%{?ext_man}
%{_mandir}/man8/*.8%{?ext_man}
%dir %{_datadir}/doc/packages/%{name}
%{_datadir}/doc/packages/%{name}/*
%changelog