xtrlock(1) obtains the crypted password of the user by calling getpwuid(3). For this to work, root priviliges are needed. Hence xtrlock should run as a setuid root binary (as it was, before the port was updated to version 2.2). Fix: Apply the following patch. How-To-Repeat: Install x11/xtrlock and run as unpriviliged user. Instead of locking the screen, xtrlock outputs the error message "password entry has no pwd".
Responsible Changed From-To: freebsd-ports-bugs->wg I'll take it.
State Changed From-To: open->closed Committed. Thanks!
Author: wg Date: Sun Jun 9 13:15:18 2013 New Revision: 320334 URL: http://svnweb.freebsd.org/changeset/ports/320334 Log: - This port needs to install with setuid bit PR: ports/177347 Submitted by: Klaus Aehlig <aehlig@linta.de> Approved by: culot / jpaetzel (mentors, implicit) Modified: head/x11/xtrlock/Makefile Modified: head/x11/xtrlock/Makefile ============================================================================== --- head/x11/xtrlock/Makefile Sun Jun 9 13:07:50 2013 (r320333) +++ head/x11/xtrlock/Makefile Sun Jun 9 13:15:18 2013 (r320334) @@ -3,6 +3,7 @@ PORTNAME= xtrlock PORTVERSION= 2.2 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= DEBIAN DISTNAME= ${PORTNAME}_${PORTVERSION} @@ -21,6 +22,7 @@ LDFLAGS+= -L${LOCALBASE}/lib -lX11 -lcry MAN1= xtrlock.1 PLIST_FILES= bin/xtrlock +BINMODE= 4555 post-extract: @${LN} -sf xtrlock.man ${WRKSRC}/xtrlock.1 _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"