]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: redefine NUM_SUBAUTH constant from 5 to 15
authorJeff Layton <jlayton@redhat.com>
Fri, 19 Oct 2012 15:23:49 +0000 (11:23 -0400)
committerJeff Layton <jlayton@redhat.com>
Fri, 19 Oct 2012 15:23:49 +0000 (11:23 -0400)
commita0aa9d61684941566a679eef2f082bf881c60c4b
tree71a840d1cd5c8f1463e368444d69fd8a8521085d
parent8df283a450fab8047f11977e615ce93f2b952efb
cifs: redefine NUM_SUBAUTH constant from 5 to 15

According to several places on the Internet and the samba winbind code,
this is hard limited to 15 in windows, not 5. This does balloon out
the allocation of each by 40 bytes, but I don't see any alternative.

Also, rename it to SID_MAX_SUB_AUTHORITIES to match the alleged name
of this constant in the windows header files

Finally, rename SIDLEN to SID_STRING_MAX, fix the value to reflect
the change to SID_MAX_SUB_AUTHORITIES and document how it was
determined.

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