ACL
static BOOL build_user_denials(ACL *pacl,
static BOOL build_user_grants(ACL *pacl,
static BOOL build_group_denials_grant(ACL *pacl,
ACL *pacl;
pacl = (ACL*)&secattr[offs];
pacl->size = cpu_to_le16(sizeof(ACL) + usidsz + 8);
pacl->size = const_cpu_to_le16(sizeof(ACL));
ACL *pacl;
pacl = (ACL*)&secattr[offs];
pacl->size = cpu_to_le16(sizeof(ACL) + usidsz + 8);
pos = sizeof(ACL);
const ACL *pdacl;
const ACL *psacl;
+ sizeof(ACL) /* acl header */
+ sizeof(ACL) /* acl header */
psacl = (const ACL*)&attr[offsacl];
pdacl = (const ACL*)&attr[offdacl];
const ACL *pacl;
pacl = (const ACL*)&securattr[offdacl];
offace = offdacl + sizeof(ACL);
const ACL *pacl;
pacl = (const ACL*)&securattr[offdacl];
offace = offdacl + sizeof(ACL);
const ACL *pacl;
pacl = (const ACL*)&securattr[offdacl];
offace = offdacl + sizeof(ACL);
const ACL *pacl;
pacl = (const ACL*)&securattr[offdacl];
offace = offdacl + sizeof(ACL);
const ACL *pacl;
pacl = (const ACL*)&securattr[offdacl];
offace = offdacl + sizeof(ACL);
const ACL *pacl;
pacl = (const ACL*)&securattr[offdacl];
offace = offdacl + sizeof(ACL);
static BOOL valid_acl(const ACL *pacl, unsigned int end)
offace = sizeof(ACL);
const ACL *pdacl;
const ACL *psacl;
pdacl = (const ACL*)&securattr[offdacl];
psacl = (const ACL*)&securattr[offsacl];
&& (offdacl+sizeof(ACL) <= attrsz)))
&& (offsacl+sizeof(ACL) <= attrsz)))
int ntfs_inherit_acl(const ACL *oldacl, ACL *newacl,
src = dst = sizeof(ACL);
if (dst > sizeof(ACL)) {
int ntfs_inherit_acl(const ACL *oldacl, ACL *newacl,
ACL *sacl; /* Points to a system ACL. Only valid, if
ACL *dacl; /* Points to a discretionary ACL. Only valid, if
ACL *acl;
sizeof(ACL) + sizeof(ACCESS_ALLOWED_ACE);
acl = (ACL*)((u8*)sid + sizeof(SID) + 4);
acl->size = const_cpu_to_le16(sizeof(ACL) + sizeof(ACCESS_ALLOWED_ACE));
ace = (ACCESS_ALLOWED_ACE*)((u8*)acl + sizeof(ACL));
const ACL *ppacl;
ACL *pnacl;
ppacl = (const ACL*)&parentattr[offpacl];
pnacl = (ACL*)&newattr[pos];
ppacl = (const ACL*)&parentattr[offpacl];
pnacl = (ACL*)&newattr[pos];
const ACL *pdacl;
const ACL *psacl;
pdacl = (const ACL*)&attr[offdacl];
psacl = (const ACL*)&attr[offsacl];
const ACL *pdacl;
const ACL *psacl;
pdacl = (const ACL*)&newattr[offdacl];
pdacl = (const ACL*)&oldattr[offdacl];
psacl = (const ACL*)&newattr[offsacl];
psacl = (const ACL*)&oldattr[offsacl];
ACL *acl;
acl = (ACL*)((u8*)sd + sizeof(SECURITY_DESCRIPTOR_RELATIVE));
ace = (ACCESS_ALLOWED_ACE*)((u8*)acl + sizeof(ACL));
ACL *acl;
ACL *acl;
acl = (ACL*)((char*)sd + sizeof(SECURITY_DESCRIPTOR_RELATIVE));
ace = (ACCESS_ALLOWED_ACE*)((char*)acl + sizeof(ACL));
acl = (ACL*)((char*)sd + le32_to_cpu(sd->dacl));
acl = (ACL*)((char*)sd + sizeof(SECURITY_DESCRIPTOR_RELATIVE));
ace = (ACCESS_ALLOWED_ACE*)((char*)acl + sizeof(ACL));
aa_ace = (ACCESS_ALLOWED_ACE*)((char*)acl + sizeof(ACL));