From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Apr 5 00:10:20 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2D8216A4FC for ; Mon, 5 Apr 2004 00:10:20 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97F4F43D58 for ; Mon, 5 Apr 2004 00:10:20 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i357AKbv011652 for ; Mon, 5 Apr 2004 00:10:20 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i357AK2x011650; Mon, 5 Apr 2004 00:10:20 -0700 (PDT) (envelope-from gnats) Resent-Date: Mon, 5 Apr 2004 00:10:20 -0700 (PDT) Resent-Message-Id: <200404050710.i357AK2x011650@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, Dmitry Kazarov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7461716A4CE for ; Mon, 5 Apr 2004 00:02:59 -0700 (PDT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 572F943D48 for ; Mon, 5 Apr 2004 00:02:59 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i3572w72045889 for ; Mon, 5 Apr 2004 00:02:58 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i3572wTn045888; Mon, 5 Apr 2004 00:02:58 -0700 (PDT) (envelope-from nobody) Message-Id: <200404050702.i3572wTn045888@www.freebsd.org> Date: Mon, 5 Apr 2004 00:02:58 -0700 (PDT) From: Dmitry Kazarov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: ports/65197: bpft package changes modes of /usr/local/{bin,sbin,etc/rc.d,man/man1,man/man8} dirs to 0750 breaking work of normal users. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 07:10:20 -0000 >Number: 65197 >Category: ports >Synopsis: bpft package changes modes of /usr/local/{bin,sbin,etc/rc.d,man/man1,man/man8} dirs to 0750 breaking work of normal users. >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: Mon Apr 05 00:10:20 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Dmitry Kazarov >Release: FreeBSD-4.9-STABLE >Organization: MIDIKON >Environment: FreeBSD testServ0.midikon.office 4.9-STABLE FreeBSD 4.9-STABLE #0: Wed Feb 11 16:16:02 MSK 2004 root@testServ0.midikon.office:/usr/obj/usr/src/sys/TESTSERV0 i386 >Description: On install /usr/ports/net-mgmt/bpft package changes mode of next dir: /usr/local/bin /usr/local/sbin /usr/local/etc/rc.d /usr/local/man/man1 /usr/local/man/man8 to 0750 (drwxr-x---) making them and their contents unaccessible to ordinal users. >How-To-Repeat: cd /usr/ports/net-mgmt/bpft && make install >Fix: --- Makefile.orig Mon Apr 5 10:52:14 2004 +++ Makefile Mon Apr 5 10:53:41 2004 @@ -49,7 +49,8 @@ SHELL = /bin/sh MODE = 750 DATA_MODE = 644 -DIR_MODE = 750 +PUBL_DIR_MODE = 755 +PRIV_DIR_MODE = 750 GROUP = wheel # This options intended for BSD/OS V2. @@ -76,7 +77,8 @@ INSTALL_PROGRAM = install -c -o root -g ${GROUP} -m ${MODE} INSTALL_SCRIPT = install -c -o root -g ${GROUP} -m ${MODE} INSTALL_FILE = install -c -o root -g ${GROUP} -m ${DATA_MODE} -INSTALL_DIRECTORY = install -d -o root -g ${GROUP} -m ${DIR_MODE} +INSTALL_PUBL_DIRECTORY = install -d -o root -g ${GROUP} -m ${PUBL_DIR_MODE} +INSTALL_PRIV_DIRECTORY = install -d -o root -g ${GROUP} -m ${PRIV_DIR_MODE} all: @for i in ${SUBDIR}; do \ @@ -92,24 +94,24 @@ install: all - ${INSTALL_DIRECTORY} ${PATH_BINDIR} - ${INSTALL_DIRECTORY} ${PATH_SBINDIR} + ${INSTALL_PUBL_DIRECTORY} ${PATH_BINDIR} + ${INSTALL_PUBL_DIRECTORY} ${PATH_SBINDIR} ${INSTALL_PROGRAM} trafd/trafd ${PATH_SBINDIR} ${INSTALL_SCRIPT} trafd/trafstart ${PATH_BINDIR} ${INSTALL_SCRIPT} trafd/trafstop ${PATH_BINDIR} ${INSTALL_SCRIPT} trafd/trafsave ${PATH_BINDIR} ${INSTALL_SCRIPT} trafd/trafdump ${PATH_BINDIR} - ${INSTALL_DIRECTORY} ${PATH_LOCAL_STARTUP_DIR} + ${INSTALL_PUBL_DIRECTORY} ${PATH_LOCAL_STARTUP_DIR} ${INSTALL_SCRIPT} trafd/trafd.sh ${PATH_LOCAL_STARTUP_DIR} ${INSTALL_PROGRAM} trafstat/trafstat ${PATH_BINDIR} ${INSTALL_PROGRAM} trafstatd/trafstatd ${PATH_SBINDIR} ${INSTALL_PROGRAM} traflog/traflog ${PATH_BINDIR} ${INSTALL_FILE} traflog/traflog.format ${PATH_TRAFLOG_FMT} - ${INSTALL_DIRECTORY} ${PATH_TOSAVE} + ${INSTALL_PRIV_DIRECTORY} ${PATH_TOSAVE} @echo Install man pages: - @${INSTALL_DIRECTORY} ${PREFIX_MANPAGES}1 >Release-Note: >Audit-Trail: >Unformatted: