Hello community,

here is the log from the commit of package restorecond for openSUSE:Factory 
checked in at 2019-03-24 14:55:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/restorecond (Old)
 and      /work/SRC/openSUSE:Factory/.restorecond.new.25356 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "restorecond"

Sun Mar 24 14:55:39 2019 rev:2 rq:687222 version:2.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/restorecond/restorecond.changes  2019-01-24 
14:10:31.179562734 +0100
+++ /work/SRC/openSUSE:Factory/.restorecond.new.25356/restorecond.changes       
2019-03-24 14:55:41.491210364 +0100
@@ -1,0 +2,7 @@
+Wed Mar 20 15:22:48 UTC 2019 - [email protected]
+
+- Update to version 2.9
+  * Do not ignore the -f option
+  * close the PID file if writing to it failed
+
+-------------------------------------------------------------------

Old:
----
  restorecond-2.8.tar.gz

New:
----
  restorecond-2.9.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ restorecond.spec ++++++
--- /var/tmp/diff_new_pack.2v8qFs/_old  2019-03-24 14:55:42.311210278 +0100
+++ /var/tmp/diff_new_pack.2v8qFs/_new  2019-03-24 14:55:42.315210278 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package restorecond
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,19 +16,19 @@
 #
 
 
-%define libselinux_ver   2.8
+%define libselinux_ver   2.9
 Name:           restorecond
-Version:        2.8
+Version:        2.9
 Release:        0
 Summary:        Daemon to restore SELinux contexts
 License:        GPL-2.0-or-later
 Group:          Productivity/Security
 URL:            https://github.com/SELinuxProject/selinux.git
-Source0:        
https://github.com/SELinuxProject/selinux/releases/download/20180524/restorecond-%{version}.tar.gz
+Source0:        
https://github.com/SELinuxProject/selinux/releases/download/20190315/restorecond-%{version}.tar.gz
 BuildRequires:  dbus-1-glib-devel
 BuildRequires:  libselinux-devel >= %{libselinux_ver}
-Requires:       selinux-tools >= %{libselinux_ver}
 Requires:       libselinux1 >= %{libselinux_ver}
+Requires:       selinux-tools >= %{libselinux_ver}
 
 %description
 Daemon that watches for file creation and then sets the default SELinux file 
context
@@ -65,5 +65,6 @@
 %{_sbindir}/rcrestorecond
 %{_datadir}/dbus-1/services/org.selinux.Restorecond.service
 %{_mandir}/man8/restorecond.8%{?ext_man}
+%{_mandir}/ru/man8/restorecond.8%{?ext_man}
 
 %changelog

++++++ restorecond-2.8.tar.gz -> restorecond-2.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/restorecond-2.8/Makefile new/restorecond-2.9/Makefile
--- old/restorecond-2.8/Makefile        2018-05-24 20:21:09.000000000 +0200
+++ new/restorecond-2.9/Makefile        2019-03-15 11:32:30.000000000 +0100
@@ -1,6 +1,7 @@
 PKG_CONFIG ?= pkg-config
 
 # Installation directories.
+LINGUAS ?= ru
 PREFIX ?= /usr
 SBINDIR ?= $(PREFIX)/sbin
 MANDIR = $(PREFIX)/share/man
@@ -9,8 +10,8 @@
 SYSTEMDDIR ?= $(PREFIX)/lib/systemd
 
 autostart_DATA = sealertauto.desktop
-INITDIR ?= $(DESTDIR)/etc/rc.d/init.d
-SELINUXDIR = $(DESTDIR)/etc/selinux
+INITDIR ?= /etc/rc.d/init.d
+SELINUXDIR = /etc/selinux
 
 DBUSFLAGS = -DHAVE_DBUS $(shell $(PKG_CONFIG) --cflags dbus-glib-1)
 DBUSLIB = $(shell $(PKG_CONFIG) --libs dbus-glib-1)
@@ -42,15 +43,21 @@
        -mkdir -p $(DESTDIR)$(SBINDIR)
        install -m 755 restorecond $(DESTDIR)$(SBINDIR)
        install -m 644 restorecond.8 $(DESTDIR)$(MANDIR)/man8
-       -mkdir -p $(INITDIR)
-       install -m 755 restorecond.init $(INITDIR)/restorecond
-       -mkdir -p $(SELINUXDIR)
-       install -m 644 restorecond.conf $(SELINUXDIR)/restorecond.conf
-       install -m 644 restorecond_user.conf $(SELINUXDIR)/restorecond_user.conf
+       for lang in $(LINGUAS) ; do \
+               if [ -e $${lang} ] ; then \
+                       [ -d $(DESTDIR)$(MANDIR)/$${lang}/man8 ] || mkdir -p 
$(DESTDIR)$(MANDIR)/$${lang}/man8 ; \
+                       install -m 644 $${lang}/*.8 
$(DESTDIR)$(MANDIR)/$${lang}/man8/ ; \
+               fi ; \
+       done
+       -mkdir -p $(DESTDIR)$(INITDIR)
+       install -m 755 restorecond.init $(DESTDIR)$(INITDIR)/restorecond
+       -mkdir -p $(DESTDIR)$(SELINUXDIR)
+       install -m 644 restorecond.conf $(DESTDIR)$(SELINUXDIR)/restorecond.conf
+       install -m 644 restorecond_user.conf 
$(DESTDIR)$(SELINUXDIR)/restorecond_user.conf
        -mkdir -p $(DESTDIR)$(AUTOSTARTDIR)
        install -m 644 restorecond.desktop 
$(DESTDIR)$(AUTOSTARTDIR)/restorecond.desktop
        -mkdir -p $(DESTDIR)$(DBUSSERVICEDIR)
-       install -m 600 org.selinux.Restorecond.service  
$(DESTDIR)$(DBUSSERVICEDIR)/org.selinux.Restorecond.service
+       install -m 644 org.selinux.Restorecond.service  
$(DESTDIR)$(DBUSSERVICEDIR)/org.selinux.Restorecond.service
        -mkdir -p $(DESTDIR)$(SYSTEMDDIR)/system
        install -m 644 restorecond.service $(DESTDIR)$(SYSTEMDDIR)/system/
 relabel: install
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/restorecond-2.8/VERSION new/restorecond-2.9/VERSION
--- old/restorecond-2.8/VERSION 2018-05-24 20:21:09.000000000 +0200
+++ new/restorecond-2.9/VERSION 2019-03-15 11:32:30.000000000 +0100
@@ -1 +1 @@
-2.8
+2.9
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/restorecond-2.8/restorecond.c 
new/restorecond-2.9/restorecond.c
--- old/restorecond-2.8/restorecond.c   2018-05-24 20:21:09.000000000 +0200
+++ new/restorecond-2.9/restorecond.c   2019-03-15 11:32:30.000000000 +0100
@@ -105,6 +105,7 @@
        }
        if (write(pidfd, val, (unsigned int)len) != len) {
                syslog(LOG_ERR, "Unable to write to pidfile (%s)", 
strerror(errno));
+               close(pidfd);
                return 1;
        }
        close(pidfd);
@@ -147,6 +148,8 @@
        if (is_selinux_enabled() != 1)
                return 0;
 
+       watch_file = server_watch_file;
+
        /* Set all options to zero/NULL except for ignore_noent & digest. */
        memset(&r_opts, 0, sizeof(r_opts));
        r_opts.ignore_noent = SELINUX_RESTORECON_IGNORE_NOENTRY;
@@ -204,7 +207,6 @@
                return 0;
        }
 
-       watch_file = server_watch_file;
        read_config(master_fd, watch_file);
 
        if (!debug_mode) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/restorecond-2.8/ru/restorecond.8 
new/restorecond-2.9/ru/restorecond.8
--- old/restorecond-2.8/ru/restorecond.8        1970-01-01 01:00:00.000000000 
+0100
+++ new/restorecond-2.9/ru/restorecond.8        2019-03-15 11:32:30.000000000 
+0100
@@ -0,0 +1,41 @@
+.TH "restorecond" "8" "2002031409" "" ""
+.SH "ИМЯ"
+restorecond \- внутренняя служба, которая отслеживает создание файлов и затем 
задаёт для них SELinux-контекст по умолчанию
+
+.SH "ОБЗОР"
+.B restorecond  [\-d] [-h] [\-f restorecond_file ] [\-u] [\-v]
+.P
+
+.SH "ОПИСАНИЕ"
+Эта страница руководства содержит описание программы
+.BR restorecond.
+.P
+Эта внутренняя служба использует inotify для отслеживания файлов, 
перечисленных в /etc/selinux/restorecond.conf. После создания этих файлов эта 
служба обеспечивает присвоение им правильного контекста, связанного с политикой.
+
+.SH "ПАРАМЕТРЫ"
+.TP 
+.B \-d
+Включить режим отладки. Приложение останется на переднем плане, будет показано 
много отладочных сообщений.
+.TP
+. B \-h
+Вывести сведения об использовании.
+.TP
+.B \-f restorecond_file
+Использовать альтернативный файл restorecond.conf.
+.TP
+.B \-u
+Включить пользовательский режим. Запускает restorecond в сеансе пользователя и 
выполняет чтение /etc/selinux/restorecond_user.conf. Использует dbus, чтобы 
удостовериться, что в одном сеансе пользователя запущен только один экземпляр 
restorecond.
+.TP
+.B \-v
+Включить отладку с подробным выводом. (Сообщать об отсутствующих файлах)
+
+.SH "ФАЙЛЫ"
+/etc/selinux/restorecond.conf
+/etc/selinux/restorecond_user.conf
+
+.SH "СМОТРИТЕ ТАКЖЕ"
+.BR restorecon (8)
+
+.SH "АВТОРЫ"
+Эта man-страница и программа были написаны Dan Walsh <[email protected]>.
+Перевод на русский язык выполнила Герасименко Олеся <[email protected]>.


Reply via email to