Hello community, here is the log from the commit of package mlocate for openSUSE:Factory checked in at 2018-05-29 10:41:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mlocate (Old) and /work/SRC/openSUSE:Factory/.mlocate.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mlocate" Tue May 29 10:41:46 2018 rev:23 rq:611548 version:0.26 Changes: -------- --- /work/SRC/openSUSE:Factory/mlocate/mlocate.changes 2017-11-24 10:56:28.487892861 +0100 +++ /work/SRC/openSUSE:Factory/.mlocate.new/mlocate.changes 2018-05-29 10:41:49.807334542 +0200 @@ -1,0 +2,5 @@ +Thu May 10 09:13:26 UTC 2018 - [email protected] + +- Add apparmor profile bsc#1089594 + +------------------------------------------------------------------- New: ---- usr.bin.locate usr.bin.updatedb ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mlocate.spec ++++++ --- /var/tmp/diff_new_pack.Q9Z2Gm/_old 2018-05-29 10:41:53.603194436 +0200 +++ /var/tmp/diff_new_pack.Q9Z2Gm/_new 2018-05-29 10:41:53.603194436 +0200 @@ -1,7 +1,7 @@ # # spec file for package mlocate # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -18,20 +18,22 @@ #Compat macro for new _fillupdir macro introduced in Nov 2017 %if ! %{defined _fillupdir} - %define _fillupdir /var/adm/fillup-templates + %define _fillupdir %{_localstatedir}/adm/fillup-templates %endif - Name: mlocate Version: 0.26 Release: 0 Summary: An utility for finding files by name -License: GPL-2.0 +License: GPL-2.0-only Group: System/Monitoring -Url: https://fedorahosted.org/mlocate/ +URL: https://pagure.io/mlocate Source0: https://fedorahosted.org/releases/m/l/%{name}/%{name}-%{version}.tar.xz Source1: updatedb.conf Source2: %{name}.cron Source3: sysconfig.locate +# apparmor profile +Source4: usr.bin.locate +Source5: usr.bin.updatedb BuildRequires: gettext-tools BuildRequires: grep BuildRequires: sed @@ -87,6 +89,9 @@ install -p -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.daily # Sysconfig settings install -D -m 644 %{SOURCE3} %{buildroot}%{_fillupdir}/sysconfig.locate +# apparmor +install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/apparmor.d/usr.bin.locate +install -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/apparmor.d/usr.bin.updatedb %check make check %{?_smp_mflags} @@ -95,7 +100,8 @@ %{fillup_only -n locate} %files -%doc AUTHORS ChangeLog README NEWS COPYING +%license COPYING +%doc AUTHORS ChangeLog README NEWS %config(noreplace) %{_sysconfdir}/updatedb.conf %{_sysconfdir}/cron.daily/%{name}.cron %attr(0755,root,root) %{_bindir}/locate @@ -104,6 +110,8 @@ %dir %{_localstatedir}/lib/mlocate %ghost %{_localstatedir}/lib/mlocate/mlocate.db %{_fillupdir}/* +%dir %{_sysconfdir}/apparmor.d/ +%{_sysconfdir}/apparmor.d/* %files lang -f %{name}.lang ++++++ usr.bin.locate ++++++ # Last Modified: Fri Apr 13 22:23:29 2018 #include <tunables/global> /usr/bin/locate { #include <abstractions/base> #include <abstractions/nameservice> /usr/bin/locate mr, /var/lib/mlocate/mlocate.db r, } ++++++ usr.bin.updatedb ++++++ # Last Modified: Fri Apr 13 21:57:17 2018 #include <tunables/global> /usr/bin/updatedb { #include <abstractions/base> / r, /**/ r, /etc/updatedb.conf r, /usr/bin/updatedb mr, owner /proc/@{pid}/mounts r, /var/lib/mlocate/mlocate.db rwk, /var/lib/mlocate/mlocate.db.?????? rw, }
