Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MV6SK-0000tN-71 for mharc-grub-devel@gnu.org; Sun, 26 Jul 2009 12:20:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MV6SH-0000tH-Gn for grub-devel@gnu.org; Sun, 26 Jul 2009 12:20:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MV6SD-0000st-3g for grub-devel@gnu.org; Sun, 26 Jul 2009 12:20:09 -0400 Received: from [199.232.76.173] (port=32770 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MV6SC-0000sq-UE for grub-devel@gnu.org; Sun, 26 Jul 2009 12:20:04 -0400 Received: from mail-fx0-f217.google.com ([209.85.220.217]:43756) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MV6SC-0005En-Eu for grub-devel@gnu.org; Sun, 26 Jul 2009 12:20:04 -0400 Received: by fxm17 with SMTP id 17so105520fxm.42 for ; Sun, 26 Jul 2009 09:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=WMgQp3bLLBM2bFyHy9pHGNX1orMuJd6Paa3CzD1GXjA=; b=Kdl4OtQDfo630XHjFuNd2+MIXt8gl5XbdUbkNlNT8Yf52EpOLiikSSJw4k/TIusfZ7 z6MXcuTJQK8C3mwoAX+J6iofQ9EN6CgDL/s/ULw5iO9WqkpOvJ1b+kUlwSz2fA/PjBH+ Vw79dYaopcMB0h58cwvxcWW7IGIay1KOkbn4c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=PJm9s6AbdLRuCavi4m40OWh33rqFDYeKx2j5iaA3qtcsLGWEGJKMncP5/pFkeHuer0 AAvUV3hch0SYKL2AsgH86/4Nu8jEhv/6vA7xq2puR8LyU0hVbxGBfsMiwIhs78U2zjo9 Vvv/0uMXlC2ex8FW5FwrP/2T7iqOc6Zhd+YhQ= MIME-Version: 1.0 Received: by 10.204.52.136 with SMTP id i8mr2070193bkg.160.1248625203044; Sun, 26 Jul 2009 09:20:03 -0700 (PDT) In-Reply-To: <1248619241.25072.19.camel@fz.local> References: <20090605173640.GW7367@riva.ucam.org> <153689213.20090605201753@gmail.com> <1248619241.25072.19.camel@fz.local> Date: Sun, 26 Jul 2009 18:20:03 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Re[2]: 'password' command in GRUB 2? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jul 2009 16:20:10 -0000 >> If I remember correctly, I had improved on the first patch to include >> most of the remarks. I'll have a look if I can find back the modified >> patch, and send it to the list for anyone to have it. >> > > What is with his patch? Shouldn't we just send him an assigment? > Adrian (the author of SGD) just mentioned on IRC that everyone tells him > grub2 won't be used widely by distros without password support. Yes. It's important. Quick look shows that this patch mainly deals with passwords and totally neglects authentication framework. While it already does password protection if later we want to extend support to new primitives or even just. Once we have the framework implementing particular authentication will be easy > > So it seems this is important to people. > I try to look into this but I have the feeling that I'm not really the > right person for this. Especially when we want something complete and > extensible etc. > I think you underestimate yourself. Especially if we agree on function propotypes you are completely able to implement. Discussing on IRC I formulated 3 criteria which our system must satisfy: (1) you can't access shell without authenticating as "superuser". (2) boot some entries without authenticating as one of users (list of allowed users may differ per menuentry) (3) new autentication schemes (e.g. ssh keys) should be implementable as modules I propose following implementation guidelines: Syntax: set superusers=root,gnu password root "GRUB" md5_password operator $MD5$MD5$MD5 fingeprint gnu /gnu.fp menuentry "single mode" --users root,operator { .... } Wher user tries to authenticate GRUB2 will ask him login and then call a function from module Prototypes: grub_err_t grub_auth_register_authentication (const char *user, grub_err_t (*callback) (const char*, void *), void *arg); this will ask to call callback if login is USER. grub_err_t grub_auth_authenticate (const char *user); grub_err_t grub_auth_deauthenticate (const char *user); grub_err_t grub_auth_check_authentication (const char *userlist); grub_auth_check_authentication will output login prompt if no user from userlist is already authenticated > -- > Felix Zielcke > Proud Debian Maintainer > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git