cifs: Pass GLOBAL_ROOT_UID and GLOBAL_ROOT_GID to keyring_alloc
[platform/adaptation/renesas_rcar/renesas_kernel.git] / fs / cifs / cifsacl.c
index 2e811f4..aaaf5ce 100644 (file)
@@ -347,7 +347,8 @@ init_cifs_idmap(void)
        if (!cred)
                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_USR_VIEW | KEY_USR_READ,
                                KEY_ALLOC_NOT_IN_QUOTA, NULL);