cifs: deal with id_to_sid embedded sid reply corner case
authorJeff Layton <jlayton@redhat.com>
Mon, 3 Dec 2012 11:05:31 +0000 (06:05 -0500)
committerSteve French <smfrench@gmail.com>
Sun, 9 Dec 2012 04:04:37 +0000 (22:04 -0600)
commit1f6306806c1494bea51b93f96e105e93a96e3c22
tree8cbd03168fa91915bcf144e8b56dccf53b78acc2
parent7ee0b4c635c091eb3c805977ba886bae2fd33f0c
cifs: deal with id_to_sid embedded sid reply corner case

A SID could potentially be embedded inside of payload.value if there are
no subauthorities, and the arch has 8 byte pointers. Allow for that
possibility there.

While we're at it, rephrase the "embedding" check in terms of
key->payload to allow for the possibility that the union might change
size in the future.

Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsacl.c