From owner-freebsd-ports-bugs@freebsd.org Tue Sep 22 21:12:30 2015 Return-Path: Delivered-To: freebsd-ports-bugs@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 C385AA03D5C for ; Tue, 22 Sep 2015 21:12:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 968F8116A for ; Tue, 22 Sep 2015 21:12:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t8MLCU96062045 for ; Tue, 22 Sep 2015 21:12:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 203268] [bsd.port.mk] home directory of USERS conflict with plist Date: Tue, 22 Sep 2015 21:12:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: amdmi3@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2015 21:12:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203268 Bug ID: 203268 Summary: [bsd.port.mk] home directory of USERS conflict with plist Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: amdmi3@FreeBSD.org CC: freebsd-ports-bugs@FreeBSD.org Problem: www/rejik ports breaks permissions of /var/squid (750->755), even though it doesn't touch the directory. ====>> Checking for extra files and directories ====>> Error: Files or directories modified: /var/squid permissions (0750, 0755) ====>> Cleaning up wrkdir Full log: http://poudriere.amdmi3.ru/data/10-amd64-default/failures_all_2015_09_20/logs/errors/rejik-3.2.11_1.log Thus happens because: a) squid creates directory and sets custom permissions: @dir(squid,squid,750) /var/squid b) UIDs entry for squid has homedir defined: squid:*:100:100::0:0:squid caching-proxy pseudo user:/var/squid:/usr/sbin/nologin c) rejik has USERS=squid, and ports infrastructure tries to create home directory for specified users: bsd.port.mk:3647: case $$homedir in /|/nonexistent|/var/empty) ;; *) ${ECHO_CMD} "${INSTALL} -d -g $$gid -o $$uid $$homedir" >> ${_UG_OUTPUT};; esac; \ Thus, when rejik is installed, infrastructure resets /var/squid to 755 Possible solutions: 1) Don't automatically create homedir for USERS (seems the best for me) - may lead to non-existing homedir - which, however, may be OK if it's not needed for specific port; also ports may depend on other ports to create homedir, like rejik does by run-depending on squid - need to synchronize permissions for all ports which create a directory, still that's possible 2) Always set users's home directory to /var/empty. - will likely break some ports 3) Include homedir permissions into UIDs file - makes it non-standard layout - maintained in a centralized way - still needs duplicated plist @dir entries in ports (or not?) -- You are receiving this mail because: You are on the CC list for the bug.