X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 41400DC0091 for ; Fri, 28 Jun 2013 16:40:01 +0000 (UTC) Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id E1D5B20EE9 for ; Fri, 28 Jun 2013 12:40:00 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 28 Jun 2013 12:40:00 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:subject:message-id :references:mime-version:content-type:in-reply-to; s=smtpout; bh=NYLfJvPMQ82mDU3tEH/2tG0Hv8Y=; b=GPn5u3FAYzb5w1NyoLVdLSU08ah/ 0s4FdMFEjJidoy4mj7uxCv6MMU1wvZSDrJlBfp2F/NpJWU/o/wc2Th40BB/+1y20 MMkLDA7X9AU5mHOYEhzpP1qdifuVhL0ZeWTznQi0rnDA5DLjEXy9Vr+OcdQUuD85 dy2PVaDhfoYV9kM= X-Sasl-enc: JzPeQpF6PWEVu7HgBn9LY4ngxs0YYgBubftoMkE2mTRR 1372437600 Received: from localhost (unknown [216.165.95.72]) by mail.messagingengine.com (Postfix) with ESMTPA id B4C9E6801C6 for ; Fri, 28 Jun 2013 12:40:00 -0400 (EDT) Date: Fri, 28 Jun 2013 12:40:00 -0400 From: Dubiousjim To: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH 8/8] main/syslinux: hooks for bootloader password Message-ID: <20130628164000.GC1712@zen.nyu.edu> Mail-Followup-To: alpine-devel@lists.alpinelinux.org References: <8e59b6613a04739d2800a1bf8a317ff73523d096.1372318132.git.dubiousjim@gmail.com> <20130628165453.3e8fd072@ncopa-desktop.alpinelinux.org> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130628165453.3e8fd072@ncopa-desktop.alpinelinux.org> User-Agent: Mutt/1.5.21 (2010-09-15) On Fri, Jun 28, 2013 at 04:54:53PM +0200, Natanael Copa wrote: > On Thu, 27 Jun 2013 03:32:21 -0400 > Dubiousjim wrote: > > diff --git a/main/syslinux/APKBUILD b/main/syslinux/APKBUILD > > index 79d7e6c..a6c0f54 100644 > > --- a/main/syslinux/APKBUILD > > +++ b/main/syslinux/APKBUILD > > @@ -39,6 +39,7 @@ build() { > > package() { > > cd "$_builddir" > > make INSTALLROOT="$pkgdir" MANDIR=/usr/share/man local-install > > + install -D -m755 utils/sha1pass "$pkgdir"/usr/sbin/sha1pass || return 1 > > I had a look at this script but i don't like it. > 1) IMHO its useless use of perl. A tiny C app using crypt(3) would do > the same job with less lines and without perl. > 2) it requires that password is specified on command line. I think it > should at least optionally be able to read it from stdin. > > Looks like it supports sha256/sha512 passwords. Maybe we could use > cryptpw instead? > > Could you please test if the cryptpw generated passwd works? If so, > then we don't install sha1pass which does things bad. Ok, I'll queue that up. I was just taking that script from the syslinux source folder. -- Dubiousjim dubiousjim@gmail.com --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---