Lines Matching defs:sd
385 * @sd: self-relative security descriptor whose hash to calculate
386 * @length: size in bytes of the security descritor @sd
388 * Calculate the hash of the self-relative security descriptor @sd of length
399 le32 ntfs_security_hash(const SECURITY_DESCRIPTOR_RELATIVE *sd, const u32 len)
401 const le32 *pos = (const le32*)sd;
3182 /* JPA SECURITY_DESCRIPTOR_ATTR *sd; */
3183 SECURITY_DESCRIPTOR_RELATIVE *sd;
3197 sd = (SECURITY_DESCRIPTOR_RELATIVE*)ntfs_calloc(sd_len);
3198 if (!sd)
3201 sd->revision = SECURITY_DESCRIPTOR_REVISION;
3202 sd->control = SE_DACL_PRESENT | SE_SELF_RELATIVE;
3204 sid = (SID*)((u8*)sd + sizeof(SECURITY_DESCRIPTOR_ATTR));
3210 sd->owner = cpu_to_le32((u8*)sid - (u8*)sd);
3218 sd->group = cpu_to_le32((u8*)sid - (u8*)sd);
3224 sd->dacl = cpu_to_le32((u8*)acl - (u8*)sd);
3236 ret = ntfs_attr_add(ni, AT_SECURITY_DESCRIPTOR, AT_UNNAMED, 0, (u8*)sd,
3241 free(sd);