From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Re[2]: 'password' command in GRUB 2?
Date: Wed, 19 Aug 2009 17:08:48 +0200 [thread overview]
Message-ID: <20090819150848.GA7859@thorin> (raw)
In-Reply-To: <d7ead6de0907260920w23aae8ebn8a3aaf051bc590a@mail.gmail.com>
On Sun, Jul 26, 2009 at 06:20:03PM +0200, Vladimir 'phcoder' Serbinenko wrote:
> 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
I agree with this proposal in general. Except with the concept of "users",
which I think might be overkill. GRUB is not a Un*x with its /home and
per-user settings. These passwords just protect resources, so I'm not sure
if there's a point in managing users as an intermediate layer between
passwords and the restricted resource.
What does everyone else think?
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
next prev parent reply other threads:[~2009-08-19 15:09 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-05 17:36 'password' command in GRUB 2? Colin Watson
2009-06-05 17:55 ` Vladimir 'phcoder' Serbinenko
2009-06-05 18:17 ` Re[2]: " Julien RANC
2009-07-26 14:40 ` Felix Zielcke
2009-07-26 16:20 ` Vladimir 'phcoder' Serbinenko
2009-07-26 21:29 ` Vladimir 'phcoder' Serbinenko
2009-08-20 16:44 ` Robert Millan
2009-08-21 11:30 ` Vladimir 'phcoder' Serbinenko
2009-08-22 19:47 ` Vladimir 'phcoder' Serbinenko
2009-08-23 10:14 ` Robert Millan
2009-08-24 22:36 ` Robert Millan
2009-08-24 23:58 ` Vladimir 'phcoder' Serbinenko
2009-08-25 14:35 ` Felix Zielcke
2009-08-25 14:50 ` Vladimir 'phcoder' Serbinenko
2009-08-25 18:55 ` Michal Suchanek
2009-08-25 19:54 ` Vladimir 'phcoder' Serbinenko
2009-08-26 11:51 ` Michal Suchanek
2009-08-26 17:32 ` Vladimir 'phcoder' Serbinenko
2009-08-28 12:37 ` Robert Millan
2009-08-19 15:08 ` Robert Millan [this message]
2009-08-19 15:17 ` Vladimir 'phcoder' Serbinenko
2009-08-20 16:32 ` Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090819150848.GA7859@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.