Hello community, here is the log from the commit of package mcstrans for openSUSE:Factory checked in at 2020-03-08 22:23:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mcstrans (Old) and /work/SRC/openSUSE:Factory/.mcstrans.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mcstrans" Sun Mar 8 22:23:38 2020 rev:24 rq:781810 version:3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/mcstrans/mcstrans.changes 2019-09-20 14:42:14.975013350 +0200 +++ /work/SRC/openSUSE:Factory/.mcstrans.new.26092/mcstrans.changes 2020-03-08 22:23:58.704071575 +0100 @@ -1,0 +2,6 @@ +Tue Mar 3 12:26:40 UTC 2020 - Johannes Segitz <[email protected]> + +- Update to version 3.0 + * Add reference to setools.conf man page in the daemon one + +------------------------------------------------------------------- Old: ---- mcstrans-2.9.tar.gz New: ---- mcstrans-3.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mcstrans.spec ++++++ --- /var/tmp/diff_new_pack.Ercak4/_old 2020-03-08 22:23:59.324071957 +0100 +++ /var/tmp/diff_new_pack.Ercak4/_new 2020-03-08 22:23:59.328071960 +0100 @@ -1,7 +1,7 @@ # # spec file for package mcstrans # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,13 @@ Name: mcstrans -Version: 2.9 +Version: 3.0 Release: 0 Summary: SELinux Translation Daemon License: GPL-2.0-or-later Group: System/Management URL: https://github.com/SELinuxProject/selinux/wiki -Source: https://github.com/SELinuxProject/selinux/releases/download/20190315/%{name}-%{version}.tar.gz +Source: https://github.com/SELinuxProject/selinux/releases/download/20191204/%{name}-%{version}.tar.gz Patch0: %{name}-writepid.patch Patch1: add_includes.patch BuildRequires: aaa_base @@ -89,6 +89,8 @@ %{_unitdir}/mcstrans*.service /sbin/mcstransd %{_sbindir}/rcmcstrans +%{_mandir}/man5/*.5%{?ext_man} +%{_mandir}/ru/man5/*.5%{?ext_man} %{_mandir}/man8/*.8%{?ext_man} %{_mandir}/ru/man8/*.8%{?ext_man} %dir %{_datadir}/doc/packages/%{name} ++++++ mcstrans-2.9.tar.gz -> mcstrans-3.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/VERSION new/mcstrans-3.0/VERSION --- old/mcstrans-2.9/VERSION 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/VERSION 2019-11-28 13:46:48.000000000 +0100 @@ -1 +1 @@ -2.9 +3.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/man/Makefile new/mcstrans-3.0/man/Makefile --- old/mcstrans-2.9/man/Makefile 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/man/Makefile 2019-11-28 13:46:48.000000000 +0100 @@ -2,15 +2,23 @@ LINGUAS ?= ru PREFIX ?= /usr MANDIR ?= $(PREFIX)/share/man +MAN5SUBDIR ?= man5 +MAN5DIR ?= $(MANDIR)/$(MAN5SUBDIR) MAN8SUBDIR ?= man8 MAN8DIR ?= $(MANDIR)/$(MAN8SUBDIR) all: install: all + mkdir -p $(DESTDIR)$(MAN5DIR) mkdir -p $(DESTDIR)$(MAN8DIR) + install -m 644 man5/*.5 $(DESTDIR)$(MAN5DIR) install -m 644 man8/*.8 $(DESTDIR)$(MAN8DIR) for lang in $(LINGUAS) ; do \ + if [ -e $${lang}/man5 ] ; then \ + mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN5SUBDIR) ; \ + install -m 644 $${lang}/man5/*.5 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN5SUBDIR) ; \ + fi ; \ if [ -e $${lang}/man8 ] ; then \ mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \ install -m 644 $${lang}/man8/*.8 $(DESTDIR)$(MANDIR)/$${lang}/$(MAN8SUBDIR) ; \ @@ -19,4 +27,5 @@ clean: -rm -f *~ \#* + -rm -f man5/*~ man5/\#* -rm -f man8/*~ man8/\#* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/man/man5/setrans.conf.5 new/mcstrans-3.0/man/man5/setrans.conf.5 --- old/mcstrans-2.9/man/man5/setrans.conf.5 1970-01-01 01:00:00.000000000 +0100 +++ new/mcstrans-3.0/man/man5/setrans.conf.5 2019-11-28 13:46:48.000000000 +0100 @@ -0,0 +1,106 @@ +.TH "setrans.conf" "5" "13 July 2010" "[email protected]" "setrans.conf documentation" +.SH "NAME" +setrans.conf \- translation configuration file for MCS/MLS SELinux systems + +.SH "DESCRIPTION" +The +.I /etc/selinux/{SELINUXTYPE}/setrans.conf +configuration file specifies the way that SELinux MCS/MLS labels are translated into human +readable form by the mcstransd daemon. The default policies support 16 sensitivity levels (s0 through s15) and 1024 categories (c0 through c1023). Multiple categories can be separated with commas (c0,c1,c3,c5) and a range of categories can be shortened using dot notation (c0.c3,c5). + +.SS "Keywords" + +.TP +Base\fR +once a base is declared, subsequent sensitivity label definitions will have all modifiers applied to them during translation. +Sensitivity labels defined before the base declaration are immediately cached and no modifiers will be applied these are used as direct translations. + +.TP +Default\fR +defines the category bit range that will be used for inverse bits. + +.TP +Domain\fR +creates a new domain with the supplied name. + +.TP +Include\fR +read and process the contents of the specified configuration file. + +.TP +Join\fR +defines a character used to separate members of a modifier group when more than one is specified (ex. USA/AUS). + +.TP +ModifierGroup\fR +a means of grouping category bit definitions by how they modify the sensitivity label. + +.TP +Prefix\fR +word(s) that may proceed member(s) of a modifier group (ex. REL USA). + +.TP +Suffix\fR +word(s) that may follow member(s) of a modifier group (ex. USA EYES ONLY). + +.TP +Whitespace\fR +defines the set of acceptable white space characters that may be used in label being translated. + +.SS "Sensitivity Level Definition Examples" + +.TP +s0=SystemLow\fR +defines a translation of s0 (the lowest sensitivity level) with no categories to SystemLow. + +.TP +s15:c0.c1023=SystemHigh\fR +defines a translation of s15:c0.c1023 to SystemHigh. c0.c1023 is shorthand for all categories. A colon separates the sensitivity level and categories. + +.TP +s0\-s15:c0.c1023=SystemLow\-SystemHigh\fR +defines a range translation of s0\-s15:c0.c1023 to SystemLow\-SystemHigh. The two range components are separated by a dash. + +.TP +s0:c0=PatientRecord\fR +defines a translation of sensitivity s0 with category c0 to PatientRecord. + +.TP +s0:c1=Accounting\fR +defines a translation of sensitivity s0 with category c1 to Accounting. + +.TP +s2:c1,c2,c3=Confidential3Categories +.TP +s2:c1.c3=Confidential3Categories\fR +both define a translation of sensitivity s2 with categories c1, c2 and c3 to Confidential3Categories. + +.TP +s5=TopSecret\fR +defines a translation of sensitivity s5 with no categories to TopSecret. + +.SS "Constraint Examples" + +.TP +c0!c1 +if category bits 0 and 1 are both set, the constraint will fail and the original context will be returned. + +.TP +c5.c9>c1 +if category bits 5 through 9 are set, bit 1 must also be set or the constraint will fail and the original context will be returned. + +.TP +s1!c5,c9 +if category bits 5 and 9 are set and the sensitivity level is s1, the constraint will fail and the original context will be returned. + +.SH "AUTHOR" + Written by Joe Nall <[email protected]>. + Updated by Ted X. Toth <[email protected]>. + +.SH "SEE ALSO" +selinux(8), mcs(8), mls(8), chcon(1) + +.SH "FILES" +/etc/selinux/{SELINUXTYPE}/setrans.conf +.br +/usr/share/mcstrans/examples diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/man/man8/mcstransd.8 new/mcstrans-3.0/man/man8/mcstransd.8 --- old/mcstrans-2.9/man/man8/mcstransd.8 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/man/man8/mcstransd.8 2019-11-28 13:46:48.000000000 +0100 @@ -29,4 +29,4 @@ /etc/selinux/{SELINUXTYPE}/setrans.conf .SH "SEE ALSO" -.BR mcs (8), +.BR setrans.conf (5), mcs (8) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/man/man8/setrans.conf.8 new/mcstrans-3.0/man/man8/setrans.conf.8 --- old/mcstrans-2.9/man/man8/setrans.conf.8 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/man/man8/setrans.conf.8 1970-01-01 01:00:00.000000000 +0100 @@ -1,106 +0,0 @@ -.TH "setrans.conf" "8" "13 July 2010" "[email protected]" "setrans.conf documentation" -.SH "NAME" -setrans.conf \- translation configuration file for MCS/MLS SELinux systems - -.SH "DESCRIPTION" -The -.I /etc/selinux/{SELINUXTYPE}/setrans.conf -configuration file specifies the way that SELinux MCS/MLS labels are translated into human -readable form by the mcstransd daemon. The default policies support 16 sensitivity levels (s0 through s15) and 1024 categories (c0 through c1023). Multiple categories can be separated with commas (c0,c1,c3,c5) and a range of categories can be shortened using dot notation (c0.c3,c5). - -.SS "Keywords" - -.TP -Base\fR -once a base is declared, subsequent sensitivity label definitions will have all modifiers applied to them during translation. -Sensitivity labels defined before the base declaration are immediately cached and no modifiers will be applied these are used as direct translations. - -.TP -Default\fR -defines the category bit range that will be used for inverse bits. - -.TP -Domain\fR -creates a new domain with the supplied name. - -.TP -Include\fR -read and process the contents of the specified configuration file. - -.TP -Join\fR -defines a character used to separate members of a modifier group when more than one is specified (ex. USA/AUS). - -.TP -ModifierGroup\fR -a means of grouping category bit definitions by how they modify the sensitivity label. - -.TP -Prefix\fR -word(s) that may proceed member(s) of a modifier group (ex. REL USA). - -.TP -Suffix\fR -word(s) that may follow member(s) of a modifier group (ex. USA EYES ONLY). - -.TP -Whitespace\fR -defines the set of acceptable white space characters that may be used in label being translated. - -.SS "Sensitivity Level Definition Examples" - -.TP -s0=SystemLow\fR -defines a translation of s0 (the lowest sensitivity level) with no categories to SystemLow. - -.TP -s15:c0.c1023=SystemHigh\fR -defines a translation of s15:c0.c1023 to SystemHigh. c0.c1023 is shorthand for all categories. A colon separates the sensitivity level and categories. - -.TP -s0\-s15:c0.c1023=SystemLow\-SystemHigh\fR -defines a range translation of s0\-s15:c0.c1023 to SystemLow\-SystemHigh. The two range components are separated by a dash. - -.TP -s0:c0=PatientRecord\fR -defines a translation of sensitivity s0 with category c0 to PatientRecord. - -.TP -s0:c1=Accounting\fR -defines a translation of sensitivity s0 with category c1 to Accounting. - -.TP -s2:c1,c2,c3=Confidential3Categories -.TP -s2:c1.c3=Confidential3Categories\fR -both define a translation of sensitivity s2 with categories c1, c2 and c3 to Confidential3Categories. - -.TP -s5=TopSecret\fR -defines a translation of sensitivity s5 with no categories to TopSecret. - -.SS "Constraint Examples" - -.TP -c0!c1 -if category bits 0 and 1 are both set, the constraint will fail and the original context will be returned. - -.TP -c5.c9>c1 -if category bits 5 through 9 are set, bit 1 must also be set or the constraint will fail and the original context will be returned. - -.TP -s1!c5,c9 -if category bits 5 and 9 are set and the sensitivity level is s1, the constraint will fail and the original context will be returned. - -.SH "AUTHOR" - Written by Joe Nall <[email protected]>. - Updated by Ted X. Toth <[email protected]>. - -.SH "SEE ALSO" -selinux(8), mcs(8), mls(8), chcon(1) - -.SH "FILES" -/etc/selinux/{SELINUXTYPE}/setrans.conf -.br -/usr/share/mcstrans/examples diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/man/ru/man5/setrans.conf.5 new/mcstrans-3.0/man/ru/man5/setrans.conf.5 --- old/mcstrans-2.9/man/ru/man5/setrans.conf.5 1970-01-01 01:00:00.000000000 +0100 +++ new/mcstrans-3.0/man/ru/man5/setrans.conf.5 2019-11-28 13:46:48.000000000 +0100 @@ -0,0 +1,106 @@ +.TH "setrans.conf" "5" "13 июля 2010" "[email protected]" "Документация по setrans.conf" +.SH "ИМЯ" +setrans.conf \- файл конфигурации преобразования для систем MCS/MLS SELinux + +.SH "ОПИСАНИЕ" +Файл конфигурации +.I /etc/selinux/{SELINUXTYPE}/setrans.conf +определяет способ, которым метки SELinux MCS/MLS преобразовываются в удобную для прочтения человеком форму с помощью внутренней службы mcstransd. Политики по умолчанию поддерживают 16 уровней конфиденциальности (от s0 до s15) и 1024 категории (от c0 до c1023). Если категорий несколько, их можно разделить запятыми (c0,c1,c3,c5), а диапазон категорий - сократить с помощью указания через точку (c0.c3,c5). + +.SS "Ключевые слова" + +.TP +Base\fR +когда объявляется база, ко всем последующим определениям меток конфиденциальности будут при преобразовании применяться модификаторы. +Метки конфиденциальности, которые были определены до объявления базы, незамедлительно кэшируются, и к ним не применяются модификаторы; они используются в качестве прямого преобразования. + +.TP +Default\fR +определяет битовый диапазон категорий, который будет использоваться для обратных битов. + +.TP +Domain\fR +создаёт новый домен с указанным именем. + +.TP +Include\fR +прочитать и обработать содержимое указанного файла конфигурации. + +.TP +Join\fR +определяет символ, который используется для разделения участников группы модификаторов, когда указано более одного (например, USA/AUS). + +.TP +ModifierGroup\fR +средство группировки битовых определений категорий по тому, как они изменяют метку конфиденциальности. + +.TP +Prefix\fR +слова (слова), которое может предшествовать участнику (участникам) группы модификаторов (например, REL USA). + +.TP +Suffix\fR +слово (слова), которое может следовать за участником (участниками) группы модификаторов (например, USA EYES ONLY). + +.TP +Whitespace\fR +определяет набор допустимых пробельных символов, которые могут использоваться в преобразовываемой метке. + +.SS "Примеры определения уровня конфиденциальности" + +.TP +s0=SystemLow\fR +определяет преобразование s0 (минимального уровня конфиденциальности) без категорий в SystemLow. + +.TP +s15:c0.c1023=SystemHigh\fR +определяет преобразование s15:c0.c1023 в SystemHigh. c0.c1023 - сокращённое обозначение всех категорий. Уровень конфиденциальности и категории разделены двоеточием. + +.TP +s0\-s15:c0.c1023=SystemLow\-SystemHigh\fR +определяет преобразование диапазона s0\-s15:c0.c1023 в SystemLow\-SystemHigh. Два компонента диапазона разделены дефисом. + +.TP +s0:c0=PatientRecord\fR +определяет преобразование уровня конфиденциальности s0 с категорией c0 в PatientRecord. + +.TP +s0:c1=Accounting\fR +определяет преобразование уровня конфиденциальности s0 с категорией c1 в Accounting. + +.TP +s2:c1,c2,c3=Confidential3Categories +.TP +s2:c1.c3=Confidential3Categories\fR +и то, и другое определяет преобразование уровня конфиденциальности s2 с категориями c1, c2 и c3 в Confidential3Categories. + +.TP +s5=TopSecret\fR +определяет преобразование уровня конфиденциальности s5 без категорий в TopSecret. + +.SS "Примеры ограничения" + +.TP +c0!c1 +если одновременно заданы биты категорий 0 и 1, ограничение не сработает и будет возвращён исходный контекст. + +.TP +c5.c9>c1 +если заданы биты категорий с 5 по 9, бит 1 также необходимо установить - иначе ограничение не сработает и будет возвращён исходный контекст. + +.TP +s1!c5,c9 +если заданы биты категорий с 5 по 9 и уровень конфиденциальности равен s1, ограничение не сработает и будет возвращён исходный контекст. + +.SH "ФАЙЛЫ" +/etc/selinux/{SELINUXTYPE}/setrans.conf +.br +/usr/share/mcstrans/examples + +.SH "СМОТРИТЕ ТАКЖЕ" +selinux(8), mcs(8), mls(8), chcon(1) + +.SH "АВТОРЫ" + Написано Joe Nall <[email protected]>. + Обновлено Ted X. Toth <[email protected]>. + Перевод на русский язык выполнила Герасименко Олеся <[email protected]>. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/man/ru/man8/mcstransd.8 new/mcstrans-3.0/man/ru/man8/mcstransd.8 --- old/mcstrans-2.9/man/ru/man8/mcstransd.8 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/man/ru/man8/mcstransd.8 2019-11-28 13:46:48.000000000 +0100 @@ -23,7 +23,7 @@ /etc/selinux/{SELINUXTYPE}/setrans.conf .SH "СМОТРИТЕ ТАКЖЕ" -.BR mcs (8) +.BR setrans.conf (5), mcs (8) .SH "АВТОРЫ" Эта man-страница написана Dan Walsh <[email protected]>. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/man/ru/man8/setrans.conf.8 new/mcstrans-3.0/man/ru/man8/setrans.conf.8 --- old/mcstrans-2.9/man/ru/man8/setrans.conf.8 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/man/ru/man8/setrans.conf.8 1970-01-01 01:00:00.000000000 +0100 @@ -1,106 +0,0 @@ -.TH "setrans.conf" "8" "13 июля 2010" "[email protected]" "Документация по setrans.conf" -.SH "ИМЯ" -setrans.conf \- файл конфигурации преобразования для систем MCS/MLS SELinux - -.SH "ОПИСАНИЕ" -Файл конфигурации -.I /etc/selinux/{SELINUXTYPE}/setrans.conf -определяет способ, которым метки SELinux MCS/MLS преобразовываются в удобную для прочтения человеком форму с помощью внутренней службы mcstransd. Политики по умолчанию поддерживают 16 уровней конфиденциальности (от s0 до s15) и 1024 категории (от c0 до c1023). Если категорий несколько, их можно разделить запятыми (c0,c1,c3,c5), а диапазон категорий - сократить с помощью указания через точку (c0.c3,c5). - -.SS "Ключевые слова" - -.TP -Base\fR -когда объявляется база, ко всем последующим определениям меток конфиденциальности будут при преобразовании применяться модификаторы. -Метки конфиденциальности, которые были определены до объявления базы, незамедлительно кэшируются, и к ним не применяются модификаторы; они используются в качестве прямого преобразования. - -.TP -Default\fR -определяет битовый диапазон категорий, который будет использоваться для обратных битов. - -.TP -Domain\fR -создаёт новый домен с указанным именем. - -.TP -Include\fR -прочитать и обработать содержимое указанного файла конфигурации. - -.TP -Join\fR -определяет символ, который используется для разделения участников группы модификаторов, когда указано более одного (например, USA/AUS). - -.TP -ModifierGroup\fR -средство группировки битовых определений категорий по тому, как они изменяют метку конфиденциальности. - -.TP -Prefix\fR -слова (слова), которое может предшествовать участнику (участникам) группы модификаторов (например, REL USA). - -.TP -Suffix\fR -слово (слова), которое может следовать за участником (участниками) группы модификаторов (например, USA EYES ONLY). - -.TP -Whitespace\fR -определяет набор допустимых пробельных символов, которые могут использоваться в преобразовываемой метке. - -.SS "Примеры определения уровня конфиденциальности" - -.TP -s0=SystemLow\fR -определяет преобразование s0 (минимального уровня конфиденциальности) без категорий в SystemLow. - -.TP -s15:c0.c1023=SystemHigh\fR -определяет преобразование s15:c0.c1023 в SystemHigh. c0.c1023 - сокращённое обозначение всех категорий. Уровень конфиденциальности и категории разделены двоеточием. - -.TP -s0\-s15:c0.c1023=SystemLow\-SystemHigh\fR -определяет преобразование диапазона s0\-s15:c0.c1023 в SystemLow\-SystemHigh. Два компонента диапазона разделены дефисом. - -.TP -s0:c0=PatientRecord\fR -определяет преобразование уровня конфиденциальности s0 с категорией c0 в PatientRecord. - -.TP -s0:c1=Accounting\fR -определяет преобразование уровня конфиденциальности s0 с категорией c1 в Accounting. - -.TP -s2:c1,c2,c3=Confidential3Categories -.TP -s2:c1.c3=Confidential3Categories\fR -и то, и другое определяет преобразование уровня конфиденциальности s2 с категориями c1, c2 и c3 в Confidential3Categories. - -.TP -s5=TopSecret\fR -определяет преобразование уровня конфиденциальности s5 без категорий в TopSecret. - -.SS "Примеры ограничения" - -.TP -c0!c1 -если одновременно заданы биты категорий 0 и 1, ограничение не сработает и будет возвращён исходный контекст. - -.TP -c5.c9>c1 -если заданы биты категорий с 5 по 9, бит 1 также необходимо установить - иначе ограничение не сработает и будет возвращён исходный контекст. - -.TP -s1!c5,c9 -если заданы биты категорий с 5 по 9 и уровень конфиденциальности равен s1, ограничение не сработает и будет возвращён исходный контекст. - -.SH "ФАЙЛЫ" -/etc/selinux/{SELINUXTYPE}/setrans.conf -.br -/usr/share/mcstrans/examples - -.SH "СМОТРИТЕ ТАКЖЕ" -selinux(8), mcs(8), mls(8), chcon(1) - -.SH "АВТОРЫ" - Написано Joe Nall <[email protected]>. - Обновлено Ted X. Toth <[email protected]>. - Перевод на русский язык выполнила Герасименко Олеся <[email protected]>. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/share/examples/default/setrans.conf new/mcstrans-3.0/share/examples/default/setrans.conf --- old/mcstrans-2.9/share/examples/default/setrans.conf 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/share/examples/default/setrans.conf 2019-11-28 13:46:48.000000000 +0100 @@ -1,7 +1,7 @@ # # Multi-Level Security translation table for SELinux -# -# Uncomment the following to disable translation libary +# +# Uncomment the following to disable translation library # disable=1 # # Objects can be labeled with one of 16 levels and be categorized with 0-1023 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/share/examples/include/setrans.conf new/mcstrans-3.0/share/examples/include/setrans.conf --- old/mcstrans-2.9/share/examples/include/setrans.conf 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/share/examples/include/setrans.conf 2019-11-28 13:46:48.000000000 +0100 @@ -1,7 +1,7 @@ # # Multi-Level Security translation table for SELinux -# -# Uncomment the following to disable translation libary +# +# Uncomment the following to disable translation library # disable=1 # # Objects can be labeled with one of 16 levels and be categorized with 0-1023 @@ -10,6 +10,6 @@ # Users can modify this table to translate the MLS labels for different purpose. # -# Demonstrate Include by moving everthing to an include file +# Demonstrate Include by moving everything to an include file # Include=/etc/selinux/mls/setrans.d/include-example diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/share/examples/include/setrans.d/include-example new/mcstrans-3.0/share/examples/include/setrans.d/include-example --- old/mcstrans-2.9/share/examples/include/setrans.d/include-example 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/share/examples/include/setrans.d/include-example 2019-11-28 13:46:48.000000000 +0100 @@ -1,7 +1,7 @@ # # Multi-Level Security translation table for SELinux -# -# Uncomment the following to disable translation libary +# +# Uncomment the following to disable translation library # disable=1 # # Objects can be labeled with one of 16 levels and be categorized with 0-1023 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/share/examples/nato/setrans.d/rel.conf new/mcstrans-3.0/share/examples/nato/setrans.d/rel.conf --- old/mcstrans-2.9/share/examples/nato/setrans.d/rel.conf 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/share/examples/nato/setrans.d/rel.conf 2019-11-28 13:46:48.000000000 +0100 @@ -9,7 +9,7 @@ Prefix=RELEASEABLE TO Default=c200.c511 -~c200.c511=EVERBODY +~c200.c511=EVERYBODY ~c200,~c205,~c219,~c223,~c239,~c257,~c258,~c261,~c268,~c269,~c274,~c278,~c288,~c298,~c300,~c308,~c310,~c331,~c332,~c333,~c365,~c366,~c378,~c381,~c387,~c406,~c407,~c423,~c430=NATO @@ -748,4 +748,4 @@ ~c200,~c444=ZI # Zimbabwe ~c200,~c444=ZWE # Zimbabwe -#UNCLASSIFIED \ No newline at end of file +#UNCLASSIFIED diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/share/examples/urcsts/secolor.conf new/mcstrans-3.0/share/examples/urcsts/secolor.conf --- old/mcstrans-2.9/share/examples/urcsts/secolor.conf 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/share/examples/urcsts/secolor.conf 2019-11-28 13:46:48.000000000 +0100 @@ -17,5 +17,5 @@ range s5-s5:c0.c1023 = white blue range s7-s7:c0.c1023 = black red range s9-s9:c0.c1023 = black orange -range s15:c0.c1023 = black yellow +range s15-s15:c0.c1023 = black yellow diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/share/examples/urcsts-via-include/secolor.conf new/mcstrans-3.0/share/examples/urcsts-via-include/secolor.conf --- old/mcstrans-2.9/share/examples/urcsts-via-include/secolor.conf 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/share/examples/urcsts-via-include/secolor.conf 2019-11-28 13:46:48.000000000 +0100 @@ -17,5 +17,5 @@ range s5-s5:c0.c1023 = white blue range s7-s7:c0.c1023 = black red range s9-s9:c0.c1023 = black orange -range s15:c0.c1023 = black yellow +range s15-s15:c0.c1023 = black yellow diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/share/examples/urcsts-via-include/setrans.conf new/mcstrans-3.0/share/examples/urcsts-via-include/setrans.conf --- old/mcstrans-2.9/share/examples/urcsts-via-include/setrans.conf 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/share/examples/urcsts-via-include/setrans.conf 2019-11-28 13:46:48.000000000 +0100 @@ -1,7 +1,7 @@ # # Multi-Level Security translation table for SELinux -# -# Uncomment the following to disable translation libary +# +# Uncomment the following to disable translation library # disable=1 # # Objects can be labeled with one of 16 levels and be categorized with 0-1023 @@ -10,6 +10,6 @@ # Users can modify this table to translate the MLS labels for different purpose. # -# Demonstrate Include by moving everthing to an include file +# Demonstrate Include by moving everything to an include file # Include=/etc/selinux/mls/setrans.d/*.conf diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/src/mcscolor.c new/mcstrans-3.0/src/mcscolor.c --- old/mcstrans-2.9/src/mcscolor.c 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/src/mcscolor.c 2019-11-28 13:46:48.000000000 +0100 @@ -134,12 +134,12 @@ } while (ptr) { - if (fnmatch(ptr->pattern, component, 0) == 0) { - if (idx == COLOR_RANGE) { - if (check_dominance(ptr->pattern, raw) == 0) - return &ptr->color; - } else - return &ptr->color; + if (idx == COLOR_RANGE) { + if (check_dominance(ptr->pattern, raw) == 0) + return &ptr->color; + } else { + if (fnmatch(ptr->pattern, component, 0) == 0) + return &ptr->color; } ptr = ptr->next; } @@ -211,7 +211,7 @@ /* Process line from color file. - May modify the data pointed to by the buffer paremeter */ + May modify the data pointed to by the buffer parameter */ static int process_color(char *buffer, int line) { char rule[10], pat[256], f[256], b[256]; uint32_t i, fg, bg; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mcstrans-2.9/src/mcstrans.service new/mcstrans-3.0/src/mcstrans.service --- old/mcstrans-2.9/src/mcstrans.service 2019-03-15 11:32:30.000000000 +0100 +++ new/mcstrans-3.0/src/mcstrans.service 2019-11-28 13:46:48.000000000 +0100 @@ -1,5 +1,6 @@ [Unit] Description=Translates SELinux MCS/MLS labels to human readable form +Documentation=man:mcstransd(8) ConditionSecurity=selinux [Service]
