Date: Mon, 5 Apr 2004 00:02:58 -0700 (PDT) From: Dmitry Kazarov <kazarov@willcom.ru> To: freebsd-gnats-submit@FreeBSD.org 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. Message-ID: <200404050702.i3572wTn045888@www.freebsd.org> Resent-Message-ID: <200404050710.i357AK2x011650@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404050702.i3572wTn045888>