pkgsrc-WIP-changes archive

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

xtrlock: compile with -DMULTITOUCH defined to mitigate CVE-2016-10894



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Sat Oct 29 14:03:57 2022 +0200
Changeset:	16deb9d1c1ec2647b947b6a1706e5baf1e5c8635

Modified Files:
	xtrlock/Makefile

Log Message:
xtrlock: compile with -DMULTITOUCH defined to mitigate CVE-2016-10894

See https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-10894

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=16deb9d1c1ec2647b947b6a1706e5baf1e5c8635

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 xtrlock/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diffs:
diff --git a/xtrlock/Makefile b/xtrlock/Makefile
index a4cfb85dbc..c76faa45dc 100644
--- a/xtrlock/Makefile
+++ b/xtrlock/Makefile
@@ -13,10 +13,14 @@ LICENSE=	gnu-gpl-v3
 
 USE_IMAKE=	yes
 
+# mitigate CVE-2016-10894
+CFLAGS+=	-DMULTITOUCH
+LDFLAGS+=	-lXi
+
 .include "../../mk/bsd.prefs.mk"
 
 .if exists(/etc/shadow) && !(${OPSYS:M*BSD} != "" || ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly")
-MAKE_FLAGS+=		CCOPTIONS="-DSHADOW_PWD ${CFLAGS}"
+MAKE_FLAGS+=		CCOPTIONS="${CFLAGS} -DSHADOW_PWD"			#getspnam()
 .else
 MAKE_FLAGS+=		CCOPTIONS=${CFLAGS:Q}
 .endif


Home | Main Index | Thread Index | Old Index