Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e963d4f authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

nfs: Pass GLOBAL_ROOT_UID and GLOBAL_ROOT_GID to keyring alloc



Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent f025adf1
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -193,7 +193,8 @@ static int nfs_idmap_init_keyring(void)
	if (!cred)
	if (!cred)
		return -ENOMEM;
		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_POS_ALL & ~KEY_POS_SETATTR) |
				KEY_USR_VIEW | KEY_USR_READ,
				KEY_USR_VIEW | KEY_USR_READ,
				KEY_ALLOC_NOT_IN_QUOTA, NULL);
				KEY_ALLOC_NOT_IN_QUOTA, NULL);