From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5454 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Status towards next release (1.1.4) Date: Sat, 12 Jul 2014 11:03:33 -0400 Message-ID: <20140712150333.GJ179@brightrain.aerifal.cx> References: <20140712051035.GA15099@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1405177456 10858 80.91.229.3 (12 Jul 2014 15:04:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jul 2014 15:04:16 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5459-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jul 12 17:04:10 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X5yqP-0001cD-RH for gllmg-musl@plane.gmane.org; Sat, 12 Jul 2014 17:04:09 +0200 Original-Received: (qmail 9600 invoked by uid 550); 12 Jul 2014 15:04:08 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 9501 invoked from network); 12 Jul 2014 15:03:45 -0000 Content-Disposition: inline In-Reply-To: <20140712051035.GA15099@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5454 Archived-At: On Sat, Jul 12, 2014 at 01:10:35AM -0400, Rich Felker wrote: > - The Big Bikeshed: where to find locale files? These will be somewhat > musl-specific (to the extent that no other implementation uses the > design I have in mind, though it would be easy for others to use > it), so there's no existing practice to simply adopt. The files are > not machine-specific (we'll support either endianness .mo file) so > /usr/share (or other prefix variants) is the natural base location. One idea for this: just don't accept anything except the built-in locales (C, C.UTF-8, POSIX) and absolute pathnames. For suid programs, the latter could be rejected completely (the safest and probably what we should do) or restricted to a set of reasonable paths where each path component is checked for permissions. Another idea is pulling the search path from /etc/musl-locale.conf or similar. Obviously this is not the most friendly to Rune's usage case, but it would just be one more hard-coded path to override in the custom build, or if absolute pathnames were also accepted for locales the support for /etc/musl-locale.conf could just be stripped out. Rich