]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
cifs: Pass GLOBAL_ROOT_UID and GLOBAL_ROOT_GID to keyring_alloc
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 6 Feb 2013 08:21:22 +0000 (00:21 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Feb 2013 15:28:46 +0000 (07:28 -0800)
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: "Eric W. Biederman" <ebiederm@xmission.com>
fs/cifs/cifsacl.c

index 2e811f45b413debf6593509190a729b50ecd2e79..aaaf5ce142b8d3f31fec67ef90d34a6d3114240f 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);