Lines Matching defs:sd
96 SECURITY_DESCRIPTOR_RELATIVE *sd;
102 sd = &sds->sd;
103 sd->revision = SECURITY_DESCRIPTOR_REVISION;
104 sd->control = SE_SELF_RELATIVE | SE_DACL_PROTECTED |
107 sd->control &= ~(SE_DACL_PROTECTED | SE_DACL_AUTO_INHERITED);
108 sd->dacl = const_cpu_to_le32(sizeof(SECURITY_DESCRIPTOR_RELATIVE));
114 dacl = (ACL*)((u8*)sd + le32_to_cpu(sd->dacl));
143 sd->owner = cpu_to_le32(le32_to_cpu(sd->dacl) +
145 memcpy((u8*)sd + le32_to_cpu(sd->owner), sid, sizeof(SID));
147 sd->group = cpu_to_le32(le32_to_cpu(sd->owner) + sizeof(SID));
148 memcpy((u8*)sd + le32_to_cpu(sd->group), sid, sizeof(SID));
149 sd_len = le32_to_cpu(sd->group) + sizeof(SID);
150 sds->hash = ntfs_security_hash(sd, sd_len);