]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: redefine NUM_SUBAUTH constant from 5 to 15
authorJeff Layton <jlayton@redhat.com>
Mon, 5 Nov 2012 11:47:01 +0000 (06:47 -0500)
committerJeff Layton <jlayton@redhat.com>
Mon, 5 Nov 2012 11:47:01 +0000 (06:47 -0500)
commitdeaa8d632796e01558bc2095c8328b86b9a659ef
tree2250082861369f78a0f04e851ca742260e5a51af
parent73a9861ac526b857dad263eb23f7242e6d66372b
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