From nobody@FreeBSD.org Thu Dec 1 08:07:02 2011 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1CCB106566C for ; Thu, 1 Dec 2011 08:07:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 913BC8FC12 for ; Thu, 1 Dec 2011 08:07:02 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pB1872YG023872 for ; Thu, 1 Dec 2011 08:07:02 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id pB187263023871; Thu, 1 Dec 2011 08:07:02 GMT (envelope-from nobody) Message-Id: <201112010807.pB187263023871@red.freebsd.org> Date: Thu, 1 Dec 2011 08:07:02 GMT From: Garrett Cooper To: freebsd-gnats-submit@FreeBSD.org Subject: net/minidlna - requires elevated privileges X-Send-Pr-Version: www-3.1 X-GNATS-Notify: mi@aldan.algebra.com >Number: 162990 >Category: ports >Synopsis: net/minidlna - requires elevated privileges >Confidential: no >Severity: non-critical >Priority: low >Responsible: mi >State: feedback >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 01 08:10:09 UTC 2011 >Closed-Date: >Last-Modified: Thu Dec 1 13:00:34 UTC 2011 >Originator: Garrett Cooper >Release: 9.0-RELEASE >Organization: n/a >Environment: FreeBSD bayonetta.local 9.0-RC2 FreeBSD 9.0-RC2 #0: Sun Nov 13 21:17:31 PST 2011 gcooper@bayonetta.local:/usr/obj/store/freebsd/stable/9/sys/BAYONETTA amd64 >Description: In order to remove the pidfile when daemonizing and also create the database (depending on the permissions for /var/db/minidlna), one needs to be root if minidlna is started as root. The code itself needs cleanup so that it can function with lowered privileges. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-ports-bugs->mi Responsible-Changed-By: edwin Responsible-Changed-When: Thu Dec 1 08:10:19 UTC 2011 Responsible-Changed-Why: mi@aldan.algebra.com => mi@ (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=162990 State-Changed-From-To: open->feedback State-Changed-By: edwin State-Changed-When: Thu Dec 1 08:10:23 UTC 2011 State-Changed-Why: Awaiting maintainers feedback (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=162990 From: Edwin Groothuis To: mi@aldan.algebra.com Cc: bug-followup@FreeBSD.org Subject: Re: ports/162990: net/minidlna - requires elevated privileges Date: Thu, 1 Dec 2011 08:10:22 UT Maintainer of net/minidlna, Please note that PR ports/162990 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/162990 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org From: "Mikhail T." To: bug-followup@FreeBSD.org, yanegomi@gmail.com Cc: Subject: Re: ports/162990: net/minidlna - requires elevated privileges Date: Thu, 01 Dec 2011 07:51:03 -0500 This is a multi-part message in MIME format. --------------040003000605060502020305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Garret, could you, please, provide examples of the problem(s) you've encountered? Thanks! -mi --------------040003000605060502020305 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Garret, could you, please, provide examples of the problem(s) you've encountered? Thanks!
-mi
--------------040003000605060502020305-- From: Garrett Cooper To: "Mikhail T." Cc: bug-followup@freebsd.org Subject: Re: ports/162990: net/minidlna - requires elevated privileges Date: Thu, 1 Dec 2011 04:55:16 -0800 On Thu, Dec 1, 2011 at 4:51 AM, Mikhail T. wrote: > Garret, could you, please, provide examples of the problem(s) you've > encountered? Thanks! Scenario 1: chmod -Rf 0700 /var/db/minidlna chown -Rf root /var/db/minidlna /usr/local/etc/rc.d/minidlna onerestart Will fail to create / modify the SQL media database. Scenario 2: /usr/local/etc/rc.d/minidlna onerestart /usr/local/etc/rc.d/minidlna onestop Will fail to remove the PID file -- /var/run/minidlna.pid . Thanks, -Garrett >Unformatted: