Lines Matching refs:pnntsd
524 struct cifs_ntsd *pnntsd, __u32 sidsoffset) in copy_sec_desc() argument
530 pnntsd->revision = pntsd->revision; in copy_sec_desc()
531 pnntsd->type = pntsd->type; in copy_sec_desc()
532 pnntsd->dacloffset = cpu_to_le32(sizeof(struct cifs_ntsd)); in copy_sec_desc()
533 pnntsd->sacloffset = 0; in copy_sec_desc()
534 pnntsd->osidoffset = cpu_to_le32(sidsoffset); in copy_sec_desc()
535 pnntsd->gsidoffset = cpu_to_le32(sidsoffset + sizeof(struct cifs_sid)); in copy_sec_desc()
540 nowner_sid_ptr = (struct cifs_sid *)((char *)pnntsd + sidsoffset); in copy_sec_desc()
546 ngroup_sid_ptr = (struct cifs_sid *)((char *)pnntsd + sidsoffset + in copy_sec_desc()
911 static int build_sec_desc(struct cifs_ntsd *pntsd, struct cifs_ntsd *pnntsd, in build_sec_desc() argument
931 ndacl_ptr = (struct cifs_acl *)((char *)pnntsd + ndacloffset); in build_sec_desc()
940 copy_sec_desc(pntsd, pnntsd, sidsoffset); in build_sec_desc()
943 memcpy(pnntsd, pntsd, secdesclen); in build_sec_desc()
946 owner_sid_ptr = (struct cifs_sid *)((char *)pnntsd + in build_sec_desc()
947 le32_to_cpu(pnntsd->osidoffset)); in build_sec_desc()
966 group_sid_ptr = (struct cifs_sid *)((char *)pnntsd + in build_sec_desc()
967 le32_to_cpu(pnntsd->gsidoffset)); in build_sec_desc()
1077 int set_cifs_acl(struct cifs_ntsd *pnntsd, __u32 acllen, in set_cifs_acl() argument
1118 rc = CIFSSMBSetCIFSACL(xid, tcon, fid.netfid, pnntsd, acllen, aclflag); in set_cifs_acl()
1180 struct cifs_ntsd *pnntsd = NULL; /* modified acl to be sent to server */ in id_mode_to_cifs_acl() local
1214 pnntsd = kmalloc(secdesclen, GFP_KERNEL); in id_mode_to_cifs_acl()
1215 if (!pnntsd) { in id_mode_to_cifs_acl()
1221 rc = build_sec_desc(pntsd, pnntsd, secdesclen, nmode, uid, gid, in id_mode_to_cifs_acl()
1231 rc = ops->set_acl(pnntsd, secdesclen, inode, path, aclflag); in id_mode_to_cifs_acl()
1236 kfree(pnntsd); in id_mode_to_cifs_acl()