From owner-freebsd-ports@freebsd.org Mon Nov 21 21:06:02 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 91848C4D464 for ; Mon, 21 Nov 2016 21:06:02 +0000 (UTC) (envelope-from mat@mat.cc) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0C1097C2 for ; Mon, 21 Nov 2016 21:06:01 +0000 (UTC) (envelope-from mat@mat.cc) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id AB729BDCC8 for ; Mon, 21 Nov 2016 22:05:59 +0100 (CET) Received: from atuin.in.mat.cc (atuin.in.mat.cc [79.143.241.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by prod2.absolight.net (Postfix) with ESMTPSA id 84B53BDCA2 for ; Mon, 21 Nov 2016 22:05:59 +0100 (CET) Resent-From: Mathieu Arnold Resent-To: ports-list freebsd Resent-Date: Mon, 21 Nov 2016 22:05:55 +0100 Resent-Message-ID: <05559e73-461a-ac7b-fda0-399717a47f63@mat.cc> Resent-User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 Received: from deliver ([unix socket]) by prod2.absolight.net (Cyrus v2.3.16) with LMTPA; Mon, 21 Nov 2016 04:42:14 +0100 X-Sieve: CMU Sieve 2.3 X-Original-To: freebsd@m.absolight.fr Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id D0EC9BDCAE for ; Mon, 21 Nov 2016 04:42:14 +0100 (CET) X-Virus-Scanned: amavisd-new at absolight.net X-Spam-Flag: NO X-Spam-Score: -9.902 X-Spam-Level: X-Spam-Status: No, score=-9.902 tagged_above=-200 required=5 tests=[BAYES_00=-2.599, DKIM_SIGNED=0.001, RCVD_IN_DNSWL_HI=-8, SPF_NEUTRAL=0.686, T_DKIM_INVALID=0.01] autolearn=ham autolearn_force=no Authentication-Results: prod2.absolight.net (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=str.komkon.org Received: from prod2.absolight.net ([127.0.0.1]) by prod2.absolight.net (prod2.absolight.net [127.0.0.1]) (amavisd-new, port 20024) with ESMTP id s_mKEy-rYSlh for ; Mon, 21 Nov 2016 04:42:10 +0100 (CET) Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:1900:2254:206a::19:2]) by prod2.absolight.net (Postfix) with ESMTP id 524D8BDC71 for ; Mon, 21 Nov 2016 04:42:08 +0100 (CET) Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx2.freebsd.org (Postfix) with ESMTPS id 4C10A655D6 for ; Mon, 21 Nov 2016 03:42:07 +0000 (UTC) (envelope-from freebsd@str.komkon.org) 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)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EF522E17 for ; Mon, 21 Nov 2016 03:42:06 +0000 (UTC) (envelope-from freebsd@str.komkon.org) Received: by freefall.freebsd.org (Postfix) id E37681EF2; Mon, 21 Nov 2016 03:42:06 +0000 (UTC) Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Gandi Standard SSL CA 2" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id BCABA1EEF; Mon, 21 Nov 2016 03:42:06 +0000 (UTC) (envelope-from freebsd@str.komkon.org) 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)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 918A1E12; Mon, 21 Nov 2016 03:42:06 +0000 (UTC) (envelope-from freebsd@str.komkon.org) Received: by freefall.freebsd.org (Postfix) id 869781EED; Mon, 21 Nov 2016 03:42:06 +0000 (UTC) Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Gandi Standard SSL CA 2" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 845581EEC; Mon, 21 Nov 2016 03:42:06 +0000 (UTC) (envelope-from freebsd@str.komkon.org) Received: from tissa.komkon.org (tissa.komkon.org [52.5.170.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tissa.komkon.org", Issuer "Komkon" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 26835E11; Mon, 21 Nov 2016 03:42:05 +0000 (UTC) (envelope-from freebsd@str.komkon.org) Received: from tissa.komkon.org (str@localhost [127.0.0.1]) by tissa.komkon.org (8.15.2/8.15.2) with ESMTPS id uAL3I0Q7048836 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Nov 2016 22:18:01 -0500 (EST) (envelope-from freebsd@str.komkon.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=str.komkon.org; s=mail; t=1479698282; bh=8mvtJI1E8PPKteo9iDeUzdcviMw0gaDouU/zEKJ6nPk=; h=Date:From:To:cc:Subject; b=M4E5OPIpzT7c2wNi3MBnnSXJb/bckCAltEfm0/CG9713BAQaUMX8HZM54OIT5q1Ox KqkGiaC9z86VVU+TFYm/8F7/HYY7o8FBaKfEXHNy71MPQBeJMhmEQ351i6HBRotOwp avEammttVnQEy4e1zliptjB2oqdslmqPjmpk2L4c= Received: from localhost (str@localhost) by tissa.komkon.org (8.15.2/8.15.2/Submit) with ESMTP id uAL3HxTQ048833; Sun, 20 Nov 2016 22:18:00 -0500 (EST) (envelope-from freebsd@str.komkon.org) X-Authentication-Warning: tissa.komkon.org: str owned process doing -bs Date: Sun, 20 Nov 2016 22:17:59 -0500 (EST) From: Igor Roshchin X-X-Sender: str@tissa.komkon.org To: sunpoet@FreeBSD.org cc: FreeBSD Port Management Team Subject: tinyproxy port is unfixed for long time with several problems Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Virus-Scanned: clamav-milter 0.99.2 at tissa.komkon.org X-Virus-Status: Clean X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2016 21:06:02 -0000 Hello! A few days ago, I installed tinyproxy port from the package (pkg install). I see that tinyproxy [still] has two problems that had been reported and discussed in various venues, including at least one FreeBSD bug report. Unfortunately, nothing has been done with that for a long time. 1. Problem #1: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207051 - see the initial description by Jason Mann there: Daemon is listening on ipv6 only. 2. Problem #2: https://github.com/tinyproxy/tinyproxy/issues/24 Daemon is unable to create the .pid file in /var/run due to dropped privelege. A possible solution: create /var/run/tinyproxy owned by nobody:nobody and change the pid file to /var/run/tinyproxy/tinyproxy.pid There is some resistance from @obnoxxx, but I suspect (and hope) it is from the misunderstanding. There is a more detailed explanation of what could be done (see the recent post by St-Ranger there). And an optional change, but useful (IMHO) from the security point of view: 3. Replace the user/group "nobody" used by the daemon to the dedicated "tinyproxy:tinyproxy". This would separate this server from any other, - in the way that is done with several other ports on FreeBSD. Best regards, Igor