From owner-freebsd-stable@FreeBSD.ORG Wed Sep 19 13:01:07 2012 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 37695106564A; Wed, 19 Sep 2012 13:01:07 +0000 (UTC) (envelope-from bsd@lordcow.org) Received: from lordcow.org (lordcow.org [41.203.5.188]) by mx1.freebsd.org (Postfix) with ESMTP id 784438FC08; Wed, 19 Sep 2012 13:01:06 +0000 (UTC) Received: from lordcow.org (localhost [127.0.0.1]) by lordcow.org (8.14.5/8.14.5) with ESMTP id q8JD0qAW078752 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 19 Sep 2012 15:00:52 +0200 (SAST) (envelope-from lordcow@lordcow.org) Received: (from lordcow@localhost) by lordcow.org (8.14.5/8.14.5/Submit) id q8JD0lra078751; Wed, 19 Sep 2012 15:00:47 +0200 (SAST) (envelope-from lordcow) Date: Wed, 19 Sep 2012 15:00:47 +0200 From: Gareth de Vaux To: questions@freebsd.org Message-ID: <20120919130047.GA61682@lordcow.org> References: <20120918093057.GA20095@lordcow.org> <20120918213128.GA43131@lordcow.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120918213128.GA43131@lordcow.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lordcow.org Cc: stable@freebsd.org Subject: Re: schg flags from installworld X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2012 13:01:07 -0000 On Tue 2012-09-18 (23:31), Gareth de Vaux wrote: > Looking at /usr/src/share/mk/bsd.prog.mk and /usr/src/share/mk/bsd.lib.mk - > bins and libs get installed with schg if PRECIOUSPROG and PRECIOUSLIB are > set respectively in their makefiles, both of which can be overridden by > setting NO_FSCHG, presumably in /etc/make.conf. > > Without this doing jail maintenance/upgrades is a nightmare on a host with > a securelevel of 1 but I haven't seen this mentioned anywhere. For the record the override works, except with /usr/bin/passwd. There seems to be a missing 'if !defined(NO_FSCHG)' condition around the afterinstall in /usr/src/usr.bin/passwd/Makefile.