From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4483 Path: news.gmane.org!not-for-mail From: orc Newsgroups: gmane.linux.lib.musl.general Subject: install.sh is wrong with libc.so Date: Wed, 15 Jan 2014 16:42:08 +0800 Message-ID: <5905c9fb-9fc8-4cf1-ac29-ed830c8ae5a1@email.android.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1389776876 6872 80.91.229.3 (15 Jan 2014 09:07:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2014 09:07:56 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4487-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jan 15 10:08:04 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 1W3MSB-0005dB-PP for gllmg-musl@plane.gmane.org; Wed, 15 Jan 2014 10:08:03 +0100 Original-Received: (qmail 18096 invoked by uid 550); 15 Jan 2014 09:08:02 -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 18086 invoked from network); 15 Jan 2014 09:08:01 -0000 User-Agent: K-9 Mail for Android Xref: news.gmane.org gmane.linux.lib.musl.general:4483 Archived-At: In case of executable files (which libc.so is), install.sh is wrong and dangerous. The sequence of commands of install.sh from 0.9.15: umask 077 cat < lib/libc.so > /lib/libc.so.tmp.pid # /lib/libc.so.tmp.pid is created with mode 600 mv -f /lib/libc.so.tmp.pid /lib/libc.so chmod 755 /lib/libc.so # failed with "Permission denied" After that the system is unusable and requires external assistance.