[packages/man-db] - updated to 2.8.5 - added sandbox patch (add times() to allowed syscalls, required by nroff)

qboosh qboosh at pld-linux.org
Thu Feb 14 17:59:33 CET 2019


commit 607879d92263105edb9986cf21b100bb1dc7e303
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Feb 14 18:04:57 2019 +0100

    - updated to 2.8.5
    - added sandbox patch (add times() to allowed syscalls, required by nroff)

 man-db-sandbox.patch | 10 ++++++++++
 man-db.spec          | 11 +++++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/man-db.spec b/man-db.spec
index f9921bf..5bcb31a 100644
--- a/man-db.spec
+++ b/man-db.spec
@@ -6,18 +6,20 @@
 Summary:	Tools for searching and reading man pages
 Summary(pl.UTF-8):	Narzędzia do przeszukiwania i czytania stron podręcznika man
 Name:		man-db
-Version:	2.8.4
+Version:	2.8.5
 Release:	1
 # project man-db  GPLv2+
 # Gnulib part     GPLv3+
 License:	GPL v2+ and GPL v3+
 Group:		Base
 Source0:	http://download.savannah.gnu.org/releases/man-db/%{name}-%{version}.tar.xz
-# Source0-md5:	ab41db551f500e4a595b11203b86c67a
+# Source0-md5:	c5c6c3434be14a5527d43b5ad0f09a13
 Source1:	%{name}.daily
 Source2:	%{name}.sysconfig
 # Resolves: #655385 - use old format of nroff output
 Patch0:		sgr.patch
+# recent nroff uses times()
+Patch1:		%{name}-sandbox.patch
 URL:		http://www.nongnu.org/man-db/
 BuildRequires:	gdbm-devel
 BuildRequires:	gettext-tools >= 0.18.1
@@ -67,6 +69,7 @@ man (nazywanych man-pages): man, whatis, apropos, manpath i lexgrog:
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %configure \
@@ -137,6 +140,9 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libexecdir}/man-db/zsoelim
 %{_libexecdir}/man-db/globbing
 %{_libexecdir}/man-db/manconv
+%{systemdunitdir}/man-db.service
+# TODO: as cron.daily replacement
+#%{systemdunitdir}/man-db.timer
 %{systemdtmpfilesdir}/man-db.conf
 %dir %{pkgcachedir}
 # documentation and translation
@@ -160,6 +166,7 @@ rm -rf $RPM_BUILD_ROOT
 %lang(ja) %{_mandir}/ja/man*/*
 %lang(nl) %{_mandir}/nl/man*/*
 %lang(pl) %{_mandir}/pl/man*/*
+%lang(pt) %{_mandir}/pt/man*/*
 %lang(pt_BR) %{_mandir}/pt_BR/man*/*
 %lang(ru) %{_mandir}/ru/man*/*
 %lang(sr) %{_mandir}/sr/man*/*
diff --git a/man-db-sandbox.patch b/man-db-sandbox.patch
new file mode 100644
index 0000000..6ea0102
--- /dev/null
+++ b/man-db-sandbox.patch
@@ -0,0 +1,10 @@
+--- man-db-2.8.5/lib/sandbox.c.orig	2019-01-05 10:08:56.000000000 +0100
++++ man-db-2.8.5/lib/sandbox.c	2019-02-14 17:52:29.314997003 +0100
+@@ -454,6 +454,7 @@
+ 	SC_ALLOW ("fork");
+ 	SC_ALLOW ("getrusage");
+ 	SC_ALLOW ("prctl");
++	SC_ALLOW ("times");
+ 	SC_ALLOW ("vfork");
+ 	SC_ALLOW ("wait4");
+ 	SC_ALLOW ("waitid");
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/man-db.git/commitdiff/607879d92263105edb9986cf21b100bb1dc7e303



More information about the pld-cvs-commit mailing list