Lines Matching defs:attr
478 const SECURITY_DESCRIPTOR_RELATIVE *attr, s64 attrsz,
502 attr,attrsz);
621 const SECURITY_DESCRIPTOR_RELATIVE *attr, s64 attrsz,
765 * The security attr has to be written twice 256KB
784 * now write the security attr to storage :
795 if (entersecurity_data(vol, attr, attrsz, hash, securid, offs, gap)
820 const SECURITY_DESCRIPTOR_RELATIVE *attr, s64 attrsz)
844 hash = ntfs_security_hash(attr,attrsz);
898 && !memcmp(oldattr,attr,size);
923 attr, attrsz, hash);
1069 const char *attr, ntfs_inode *ni)
1084 attrsz = ntfs_attr_size(attr);
1086 (const SECURITY_DESCRIPTOR_RELATIVE*)attr,
3194 char *attr;
3203 attr = (char*)ntfs_malloc(size);
3204 if (attr) {
3205 memcpy(attr,value,size);
3206 res = update_secur_descr(scx->vol, attr, ni);
3233 free(attr);
4559 static BOOL feedsecurityattr(const char *attr, u32 selection,
4584 phead = (const SECURITY_DESCRIPTOR_RELATIVE*)attr;
4590 pdacl = (const ACL*)&attr[offdacl];
4601 pusid = (const SID*)&attr[offowner];
4612 pgsid = (const SID*)&attr[offgroup];
4623 psacl = (const ACL*)&attr[offsacl];
4659 memcpy(buf,attr,sizeof(SECURITY_DESCRIPTOR_RELATIVE));
4667 memcpy(&buf[pos],&attr[offdacl],daclsz);
4675 memcpy(&buf[pos],&attr[offsacl],saclsz);
4683 memcpy(&buf[pos],&attr[offowner],usidsz);
4691 memcpy(&buf[pos],&attr[offgroup],gsidsz);
4892 char *attr;
4899 attr = getsecurityattr(scapi->security.vol, ni);
4900 if (attr) {
4901 if (feedsecurityattr(attr,selection,
4910 free(attr);
4941 const char *path, u32 selection, const char *attr)
4951 if (scapi && (scapi->magic == MAGIC_API) && attr) {
4952 phead = (const SECURITY_DESCRIPTOR_RELATIVE*)attr;
4953 attrsz = ntfs_attr_size(attr);
4963 && ntfs_valid_descr(attr, attrsz)) {
4972 oldattr, attr,