mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[CIFS] Fix improper endian conversion of ACL subauth field
In mode_to_acl when converting a Unix mode to a Windows ACL the subauth fields of the SID in the ACL were translated incorrectly on bigendian architectures Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
parent
76c510ad2e
commit
b1910ad622
1 changed files with 1 additions and 2 deletions
|
@ -169,8 +169,7 @@ static void copy_sec_desc(const struct cifs_ntsd *pntsd,
|
||||||
for (i = 0; i < 6; i++)
|
for (i = 0; i < 6; i++)
|
||||||
ngroup_sid_ptr->authority[i] = group_sid_ptr->authority[i];
|
ngroup_sid_ptr->authority[i] = group_sid_ptr->authority[i];
|
||||||
for (i = 0; i < 5; i++)
|
for (i = 0; i < 5; i++)
|
||||||
ngroup_sid_ptr->sub_auth[i] =
|
ngroup_sid_ptr->sub_auth[i] = group_sid_ptr->sub_auth[i];
|
||||||
cpu_to_le32(group_sid_ptr->sub_auth[i]);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue