diff options
author | James Morris <james.l.morris@oracle.com> | 2014-07-24 07:36:19 -0400 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2014-07-24 07:36:19 -0400 |
commit | 4ca332e11df42604e784bd7da9e483160636d05e (patch) | |
tree | 82e6ba6dff978edc2132e751c19197de50218c7e /fs | |
parent | 6d6f3328422a3bc56b0d8dd026a5de845d2abfa7 (diff) | |
parent | 633706a2ee81637be37b6bc02c5336950cc163b5 (diff) |
Merge tag 'keys-next-20140722' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs into next
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/idmap.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c index 567983d2c0eb..7dd55b745c4d 100644 --- a/fs/nfs/idmap.c +++ b/fs/nfs/idmap.c | |||
@@ -174,7 +174,9 @@ static int nfs_map_numeric_to_string(__u32 id, char *buf, size_t buflen) | |||
174 | 174 | ||
175 | static struct key_type key_type_id_resolver = { | 175 | static struct key_type key_type_id_resolver = { |
176 | .name = "id_resolver", | 176 | .name = "id_resolver", |
177 | .instantiate = user_instantiate, | 177 | .preparse = user_preparse, |
178 | .free_preparse = user_free_preparse, | ||
179 | .instantiate = generic_key_instantiate, | ||
178 | .match = user_match, | 180 | .match = user_match, |
179 | .revoke = user_revoke, | 181 | .revoke = user_revoke, |
180 | .destroy = user_destroy, | 182 | .destroy = user_destroy, |
@@ -282,6 +284,8 @@ static struct key *nfs_idmap_request_key(const char *name, size_t namelen, | |||
282 | desc, "", 0, idmap); | 284 | desc, "", 0, idmap); |
283 | mutex_unlock(&idmap->idmap_mutex); | 285 | mutex_unlock(&idmap->idmap_mutex); |
284 | } | 286 | } |
287 | if (!IS_ERR(rkey)) | ||
288 | set_bit(KEY_FLAG_ROOT_CAN_INVAL, &rkey->flags); | ||
285 | 289 | ||
286 | kfree(desc); | 290 | kfree(desc); |
287 | return rkey; | 291 | return rkey; |
@@ -394,7 +398,9 @@ static const struct rpc_pipe_ops idmap_upcall_ops = { | |||
394 | 398 | ||
395 | static struct key_type key_type_id_resolver_legacy = { | 399 | static struct key_type key_type_id_resolver_legacy = { |
396 | .name = "id_legacy", | 400 | .name = "id_legacy", |
397 | .instantiate = user_instantiate, | 401 | .preparse = user_preparse, |
402 | .free_preparse = user_free_preparse, | ||
403 | .instantiate = generic_key_instantiate, | ||
398 | .match = user_match, | 404 | .match = user_match, |
399 | .revoke = user_revoke, | 405 | .revoke = user_revoke, |
400 | .destroy = user_destroy, | 406 | .destroy = user_destroy, |