From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 24 16:30:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 822C35EB for ; Sun, 24 Mar 2013 16:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 50B06380 for ; Sun, 24 Mar 2013 16:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2OGU10Q085312 for ; Sun, 24 Mar 2013 16:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2OGU1xM085311; Sun, 24 Mar 2013 16:30:01 GMT (envelope-from gnats) Resent-Date: Sun, 24 Mar 2013 16:30:01 GMT Resent-Message-Id: <201303241630.r2OGU1xM085311@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Klaus Aehlig Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 21A04370 for ; Sun, 24 Mar 2013 16:23:00 +0000 (UTC) (envelope-from aehlig@linta.de) Received: from linta.de (isilmar-3.linta.de [188.40.101.200]) by mx1.freebsd.org (Postfix) with ESMTP id 5201031E for ; Sun, 24 Mar 2013 16:22:58 +0000 (UTC) Received: (qmail 18549 invoked by uid 10); 24 Mar 2013 16:16:15 -0000 Received: from howard.linta.de by isilmar.linta.de with BSMTP; 24 Mar 2013 16:16:15 -0000 Received: by howard.linta.de (Postfix, from userid 1001) id CBB6E385558; Sun, 24 Mar 2013 17:15:59 +0100 (CET) Message-Id: <20130324161559.CBB6E385558@howard.linta.de> Date: Sun, 24 Mar 2013 17:15:59 +0100 (CET) From: Klaus Aehlig To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/177347: [patch] x11/xtrlock needs to run setuid root X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Klaus Aehlig List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Mar 2013 16:30:01 -0000 >Number: 177347 >Category: ports >Synopsis: [patch] x11/xtrlock needs to run setuid root >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 24 16:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Klaus Aehlig >Release: FreeBSD 9.1-STABLE amd64 >Organization: >Environment: System: FreeBSD howard.linta.de 9.1-STABLE FreeBSD 9.1-STABLE #9 r246978: Wed Feb 20 08:46:40 CET 2013 root@howard.linta.de:/usr/obj/usr/src/sys/GENERIC amd64 >Description: 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). >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". >Fix: Apply the following patch. --- xtrlock.diff begins here --- diff -ruN xtrlock.orig/Makefile xtrlock/Makefile --- xtrlock.orig/Makefile 2013-03-24 16:58:29.000000000 +0100 +++ xtrlock/Makefile 2013-03-24 17:00:23.000000000 +0100 @@ -3,6 +3,7 @@ PORTNAME= xtrlock PORTVERSION= 2.2 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= DEBIAN DISTNAME= ${PORTNAME}_${PORTVERSION} @@ -21,6 +22,7 @@ MAN1= xtrlock.1 PLIST_FILES= bin/xtrlock +BINMODE= 4555 post-extract: @${LN} -sf xtrlock.man ${WRKSRC}/xtrlock.1 --- xtrlock.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: