All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Morris <jmorris@namei.org>
To: Steve Dickson <steved@redhat.com>
Cc: Linux Keyring Mailing list <keyrings@linux-nfs.org>,
	Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] NFS: Make keys writable on the idmap keyring.
Date: Wed, 8 Feb 2012 10:29:39 +1100 (EST)	[thread overview]
Message-ID: <alpine.LRH.2.02.1202081029000.777@tundra.namei.org> (raw)
In-Reply-To: <1328619733-30859-1-git-send-email-steved@redhat.com>

Should this go in via the NFS tree?  I can put it into the security tree 
otherwise.


On Tue, 7 Feb 2012, Steve Dickson wrote:

> To take advantage of the "Allow special keyrings to be
> cleared" keyring patch the NFS keyring has to be writeable.
> 
> Signed-off-by: Steve Dickson <steved@redhat.com>
> ---
>  fs/nfs/idmap.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
> index a1bbf77..1d88cdb 100644
> --- a/fs/nfs/idmap.c
> +++ b/fs/nfs/idmap.c
> @@ -269,7 +269,7 @@ static ssize_t nfs_idmap_request_key(const char *name, size_t namelen,
>  	}
>  
>  	rcu_read_lock();
> -	rkey->perm |= KEY_USR_VIEW;
> +	rkey->perm |= KEY_USR_VIEW|KEY_USR_WRITE;
>  
>  	ret = key_validate(rkey);
>  	if (ret < 0)
> -- 
> 1.7.7.5
> 

-- 
James Morris
<jmorris@namei.org>

  reply	other threads:[~2012-02-07 23:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-07 13:02 [PATCH] NFS: Make keys writable on the idmap keyring Steve Dickson
2012-02-07 23:29 ` James Morris [this message]
2012-02-08 16:34   ` Steve Dickson
2012-02-08 10:33 ` [Keyrings] " 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=alpine.LRH.2.02.1202081029000.777@tundra.namei.org \
    --to=jmorris@namei.org \
    --cc=keyrings@linux-nfs.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=steved@redhat.com \
    /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.