]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Use kuids and kgids SID to uid/gid mapping
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 6 Feb 2013 08:33:17 +0000 (00:33 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Feb 2013 15:28:47 +0000 (07:28 -0800)
commiteba8daacde8a4c96c21fc3e75ba3d6090e1f2608
tree7b6ba7f274246f8675db20845089a31625f5e1cd
parentf172fb895e6c3df76bb5da6a55597c0d6363903a
cifs: Use kuids and kgids SID to uid/gid mapping

Update id_mode_to_cifs_acl to take a kuid_t and a kgid_t.

Replace NO_CHANGE_32 with INVALID_UID and INVALID_GID, and tests for
NO_CHANGE_32 with uid_valid and gid_valid.

Carefully unpack the value returned from request_key.  memcpy the
value into the expected type.  The convert the uid/gid into a
kuid/kgid.  And then only if the result is a valid kuid or kgid update
fuid/fgid.

Cc: Steve French <smfrench@gmail.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/cifs/cifsacl.c
fs/cifs/cifspdu.h
fs/cifs/cifsproto.h
fs/cifs/inode.c