pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/polkit On NetBSD, polkitd is not PaX MPROTECT...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1b545e9f4c84
branches:  trunk
changeset: 308895:1b545e9f4c84
user:      youri <youri%pkgsrc.org@localhost>
date:      Mon Jun 04 01:21:08 2018 +0000

description:
On NetBSD, polkitd is not PaX MPROTECT safe, mark it as such.
Update pkgrevision for runtime fix.

diffstat:

 security/polkit/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 45c3303dfa74 -r 1b545e9f4c84 security/polkit/Makefile
--- a/security/polkit/Makefile  Mon Jun 04 01:01:50 2018 +0000
+++ b/security/polkit/Makefile  Mon Jun 04 01:21:08 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.9 2018/04/29 05:14:36 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2018/06/04 01:21:08 youri Exp $
 
 DISTNAME=      polkit-0.114
+PKGREVISION=   1
 CATEGORIES=    security
 MASTER_SITES=  http://www.freedesktop.org/software/polkit/releases/
 
@@ -64,6 +65,13 @@
 SUBST_FILES.paths+=    src/examples/org.freedesktop.policykit.examples.pkexec.policy.in
 SUBST_SED.paths+=      -e 's,/usr/bin/,${PREFIX}/bin/,g'
 
+# On NetBSD, polkitd crashes because of PaX MPROTECT
+.if ${OPSYS} == "NetBSD"
+post-install:
+       paxctl +m ${DESTDIR}${PREFIX}/lib/polkit-1/polkitd
+.endif
+
+
 .include "../../lang/spidermonkey52/buildlink3.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../devel/glib2/buildlink3.mk"



Home | Main Index | Thread Index | Old Index