From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Dec 4 00:40:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A0FCFE4D for ; Wed, 4 Dec 2013 00:40:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 630DC1010 for ; Wed, 4 Dec 2013 00:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rB40e0eS060074 for ; Wed, 4 Dec 2013 00:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rB40e0Lw060073; Wed, 4 Dec 2013 00:40:00 GMT (envelope-from gnats) Resent-Date: Wed, 4 Dec 2013 00:40:00 GMT Resent-Message-Id: <201312040040.rB40e0Lw060073@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, Yuri Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ABC7DE31 for ; Wed, 4 Dec 2013 00:37:56 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 98FD32000 for ; Wed, 4 Dec 2013 00:37:56 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rB40buRA057955 for ; Wed, 4 Dec 2013 00:37:56 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rB40bu2B057954; Wed, 4 Dec 2013 00:37:56 GMT (envelope-from nobody) Message-Id: <201312040037.rB40bu2B057954@oldred.freebsd.org> Date: Wed, 4 Dec 2013 00:37:56 GMT From: Yuri To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/184483: port security/arm: change user/group of 'arm' to _tor:_tor X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2013 00:40:00 -0000 >Number: 184483 >Category: ports >Synopsis: port security/arm: change user/group of 'arm' to _tor:_tor >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Dec 04 00:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Yuri >Release: 9.2 >Organization: n/a >Environment: >Description: There are messages in the log complaining: 16:15:38 [ARM_NOTICE] Arm is currently running with root permissions. This is not a good idea, and will still work perfectly well if it's run with the same user as Tor (ie, starting with "sudo -u _tor arm"). This patch fixes this. >How-To-Repeat: >Fix: Patch attached with submission follows: --- security/arm/Makefile (revision 335545) +++ security/arm/Makefile (working copy) @@ -37,6 +37,8 @@ .if ${PORT_OPTIONS:MTOR} RUN_DEPENDS+= lsof:${PORTSDIR}/sysutils/lsof \ tor:${PORTSDIR}/security/tor +post-install: + ${CHOWN} _tor:_tor /usr/local/bin/arm .endif .include >Release-Note: >Audit-Trail: >Unformatted: