projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f025adf
)
nfs: Pass GLOBAL_ROOT_UID and GLOBAL_ROOT_GID to keyring alloc
author
Eric W. Biederman
<ebiederm@xmission.com>
Fri, 1 Feb 2013 11:03:16 +0000
(
03:03
-0800)
committer
Eric W. Biederman
<ebiederm@xmission.com>
Wed, 13 Feb 2013 14:15:27 +0000
(06:15 -0800)
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/nfs/idmap.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/idmap.c
b/fs/nfs/idmap.c
index bc3968fa81e53c1164b9ebb93c7f122303731143..f77017c4e28b24c0e8567d7575f4c05b6824d786 100644
(file)
--- a/
fs/nfs/idmap.c
+++ b/
fs/nfs/idmap.c
@@
-193,7
+193,8
@@
static int nfs_idmap_init_keyring(void)
if (!cred)
return -ENOMEM;
- keyring = keyring_alloc(".id_resolver", 0, 0, cred,
+ keyring = keyring_alloc(".id_resolver",
+ GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred,
(KEY_POS_ALL & ~KEY_POS_SETATTR) |
KEY_USR_VIEW | KEY_USR_READ,
KEY_ALLOC_NOT_IN_QUOTA, NULL);