]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: deal with id_to_sid embedded sid reply corner case
authorJeff Layton <jlayton@redhat.com>
Mon, 5 Nov 2012 11:47:05 +0000 (06:47 -0500)
committerJeff Layton <jlayton@redhat.com>
Mon, 5 Nov 2012 11:47:05 +0000 (06:47 -0500)
commit6e53963d1e856bf20d1b562c9802753598910aca
tree5825250e1d3790effa354dd8c1e900f350de19be
parentb8bab0c638d078f0bd016275923cdbaa6302c243
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>
fs/cifs/cifsacl.c