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

Commit 8e3028b9 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

cifs: Pass GLOBAL_ROOT_UID and GLOBAL_ROOT_GID to keyring_alloc



keyring_alloc has been updated to take a kuid_t and kgid_t so
pass GLOBAL_ROOT_UID instead of 0 for the uid and GLOBAL_ROOT_GID
instead of 0 for the gid.

Cc: Steve French <smfrench@gmail.com>
Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 355958f2
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -347,7 +347,8 @@ init_cifs_idmap(void)
	if (!cred)
	if (!cred)
		return -ENOMEM;
		return -ENOMEM;


	keyring = keyring_alloc(".cifs_idmap", 0, 0, cred,
	keyring = keyring_alloc(".cifs_idmap",
				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);