mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chris Wright <chrisw@osdl.org>
To: David Howells <dhowells@redhat.com>
Cc: Linus Torvalds <torvalds@osdl.org>,
	James Morris <jmorris@redhat.com>,
	akpm@osdl.org, linux-kernel@vger.kernel.org, arjanv@redhat.com,
	dwmw2@infradead.org, greg@kroah.com,
	Chris Wright <chrisw@osdl.org>,
	sfrench@samba.org, mike@halcrow.us,
	Trond Myklebust <trond.myklebust@fys.uio.no>,
	Kyle Moffett <mrmacman_g4@mac.com>,
	viro@parcelfarce.linux.theplanet.co.uk
Subject: Re: [PATCH] implement in-kernel keys & keyring management [try #5]
Date: Tue, 10 Aug 2004 23:37:30 -0700	[thread overview]
Message-ID: <20040810233730.B1924@build.pdx.osdl.net> (raw)
In-Reply-To: <5788.1092160798@redhat.com>; from dhowells@redhat.com on Tue, Aug 10, 2004 at 06:59:58PM +0100

Hi David,

* David Howells (dhowells@redhat.com) wrote:
> It can be found at:
> 
> 	http://people.redhat.com/~dhowells/keys/keys-268rc2-5.diff.bz2

Here's a few comments/questions from first pass-thru.  Looks good so
far.  I have yet to fully digest it all, or run your current
patchset/toolset to play with it.

it's still tough to walk away from the idea that this is really close to
a filesystem interface.
                                                                                
sys_keyctl prototype declaration in key.h?  maybe in syscalls.h?
also, the #else /* !CONFIG_KEYS */ for doesn't look right.  i think
the syscall should always be there, instead use cond_syscall.
                                                                                
prctl case statement.  are case ranges supported in all gcc versions
that are valid for 2.6 kernel compilation?
                                                                                
key_euid_changed/key_egid_changed will change the process_keyring even
if it's just a thread which did the setuid/gid.  this doesn't sound
right.
                                                                                
i'm a little confused by suid_keys().  it's sprinkled in various spots,
yet the function does nothing.  what's the intention there (esp. w.r.t.
key_euid_changed)?  e.g.  placement in compute_creds is before the actual
process uid updates are done.
                                                                                
why check pid ==1 and uid ==0 in exec_keys?
                                                                                
why not switch_uid_keyring for non root_session_keyrings?
                                                                                
in alloc_uid_keyring, keyring_alloc failure for session_keyring leaks
uid_keyring allocation.
                                                                                
key_user can't be squished into user_struct?  seems like the quota stuff
could become setable from userspace (rlimit-like).
                                                                                
/sbin/request-key should probably path configurable like /sbin/hotplug.

thanks,
-chris

  reply	other threads:[~2004-08-11  6:39 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-07  0:31 [PATCH] implement in-kernel keys & keyring management David Howells
2004-08-07  8:17 ` Andrew Morton
2004-08-08  2:52   ` Greg KH
2004-08-09  9:23   ` David Howells
2004-08-09 20:27     ` Greg KH
2004-08-07  8:59 ` Trond Myklebust
2004-08-07 16:33 ` [PATCH] implement in-kernel keys & keyring management [try #2] David Howells
2004-08-08  4:45   ` James Morris
2004-08-09  9:33     ` David Howells
2004-08-09 14:08       ` James Morris
2004-08-09 14:35         ` David Howells
2004-08-09 15:47           ` James Morris
2004-08-10 18:49             ` David Howells
2004-08-07 17:45 ` [PATCH] implement in-kernel keys & keyring management David Howells
2004-08-07 17:48 ` [PATCH] implement in-kernel keys & keyring management [try #3] David Howells
2004-08-08  5:14 ` [PATCH] implement in-kernel keys & keyring management James Morris
2004-08-08  5:25   ` Linus Torvalds
2004-08-09  1:14     ` James Morris
2004-08-09  4:27       ` Linus Torvalds
2004-08-09  6:32         ` bert hubert
2004-08-09 14:51         ` Alan Cox
2004-08-09 10:01       ` David Howells
2004-08-09 10:16       ` David Howells
2004-08-09  9:40   ` David Howells
2004-08-09  9:45   ` David Howells
2004-08-09 15:24   ` [PATCH] implement in-kernel keys & keyring management [try #4] David Howells
2004-08-09 21:13     ` Kyle Moffett
2004-08-10 17:59   ` [PATCH] implement in-kernel keys & keyring management [try #5] David Howells
2004-08-11  6:37     ` Chris Wright [this message]
2004-08-11  9:46     ` David Howells
2004-08-11 12:34   ` [PATCH] implement in-kernel keys & keyring management [try #6] David Howells
2004-08-11 19:10   ` [PATCH] keys & keyring management: key filesystem David Howells

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=20040810233730.B1924@build.pdx.osdl.net \
    --to=chrisw@osdl.org \
    --cc=akpm@osdl.org \
    --cc=arjanv@redhat.com \
    --cc=dhowells@redhat.com \
    --cc=dwmw2@infradead.org \
    --cc=greg@kroah.com \
    --cc=jmorris@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mike@halcrow.us \
    --cc=mrmacman_g4@mac.com \
    --cc=sfrench@samba.org \
    --cc=torvalds@osdl.org \
    --cc=trond.myklebust@fys.uio.no \
    --cc=viro@parcelfarce.linux.theplanet.co.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®