Added alignment checks in ACL sanity checking

N2009_11_14_FIXES
jpandre 2007-12-04 07:55:59 +00:00
parent 5513e46b16
commit 4a41445698
1 changed files with 4 additions and 0 deletions

View File

@ -668,6 +668,10 @@ static BOOL valid_securattr(const char *securattr, unsigned int attrsz)
&& (phead->revision == SECURITY_DESCRIPTOR_REVISION)
&& phead->owner
&& phead->group
&& !(phead->owner & cpu_to_le32(3))
&& !(phead->group & cpu_to_le32(3))
&& !(phead->dacl & cpu_to_le32(3))
&& !(phead->sacl & cpu_to_le32(3))
&& valid_sid((const SID*)&securattr[le32_to_cpu(phead->owner)])
&& valid_sid((const SID*)&securattr[le32_to_cpu(phead->group)])
/*