Searched refs:pntsd (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/fs/cifs/
H A Dcifsacl.c401 static void copy_sec_desc(const struct cifs_ntsd *pntsd, copy_sec_desc() argument
408 pnntsd->revision = pntsd->revision; copy_sec_desc()
409 pnntsd->type = pntsd->type; copy_sec_desc()
416 owner_sid_ptr = (struct cifs_sid *)((char *)pntsd + copy_sec_desc()
417 le32_to_cpu(pntsd->osidoffset)); copy_sec_desc()
422 group_sid_ptr = (struct cifs_sid *)((char *)pntsd + copy_sec_desc()
423 le32_to_cpu(pntsd->gsidoffset)); copy_sec_desc()
732 struct cifs_ntsd *pntsd, int acl_len, struct cifs_fattr *fattr) parse_sec_desc()
737 char *end_of_acl = ((char *)pntsd) + acl_len; parse_sec_desc()
740 if (pntsd == NULL) parse_sec_desc()
743 owner_sid_ptr = (struct cifs_sid *)((char *)pntsd + parse_sec_desc()
744 le32_to_cpu(pntsd->osidoffset)); parse_sec_desc()
745 group_sid_ptr = (struct cifs_sid *)((char *)pntsd + parse_sec_desc()
746 le32_to_cpu(pntsd->gsidoffset)); parse_sec_desc()
747 dacloffset = le32_to_cpu(pntsd->dacloffset); parse_sec_desc()
748 dacl_ptr = (struct cifs_acl *)((char *)pntsd + dacloffset); parse_sec_desc()
750 pntsd->revision, pntsd->type, le32_to_cpu(pntsd->osidoffset), parse_sec_desc()
751 le32_to_cpu(pntsd->gsidoffset), parse_sec_desc()
752 le32_to_cpu(pntsd->sacloffset), dacloffset); parse_sec_desc()
789 static int build_sec_desc(struct cifs_ntsd *pntsd, struct cifs_ntsd *pnntsd, build_sec_desc() argument
802 owner_sid_ptr = (struct cifs_sid *)((char *)pntsd + build_sec_desc()
803 le32_to_cpu(pntsd->osidoffset)); build_sec_desc()
804 group_sid_ptr = (struct cifs_sid *)((char *)pntsd + build_sec_desc()
805 le32_to_cpu(pntsd->gsidoffset)); build_sec_desc()
806 dacloffset = le32_to_cpu(pntsd->dacloffset); build_sec_desc()
807 dacl_ptr = (struct cifs_acl *)((char *)pntsd + dacloffset); build_sec_desc()
818 copy_sec_desc(pntsd, pnntsd, sidsoffset); build_sec_desc()
821 memcpy(pnntsd, pntsd, secdesclen); build_sec_desc()
870 struct cifs_ntsd *pntsd = NULL; get_cifs_acl_by_fid() local
879 rc = CIFSSMBGetCIFSACL(xid, tlink_tcon(tlink), cifsfid->netfid, &pntsd, get_cifs_acl_by_fid()
888 return pntsd; get_cifs_acl_by_fid()
894 struct cifs_ntsd *pntsd = NULL; get_cifs_acl_by_path() local
923 rc = CIFSSMBGetCIFSACL(xid, tcon, fid.netfid, &pntsd, pacllen); get_cifs_acl_by_path()
933 return pntsd; get_cifs_acl_by_path()
941 struct cifs_ntsd *pntsd = NULL; get_cifs_acl() local
949 pntsd = get_cifs_acl_by_fid(cifs_sb, &open_file->fid, pacllen); get_cifs_acl()
951 return pntsd; get_cifs_acl()
1012 struct cifs_ntsd *pntsd = NULL; cifs_acl_to_fattr() local
1025 pntsd = tcon->ses->server->ops->get_acl_by_fid(cifs_sb, pfid, cifs_acl_to_fattr()
1028 pntsd = tcon->ses->server->ops->get_acl(cifs_sb, inode, path, cifs_acl_to_fattr()
1035 if (IS_ERR(pntsd)) { cifs_acl_to_fattr()
1036 rc = PTR_ERR(pntsd); cifs_acl_to_fattr()
1039 rc = parse_sec_desc(cifs_sb, pntsd, acllen, fattr); cifs_acl_to_fattr()
1040 kfree(pntsd); cifs_acl_to_fattr()
1058 struct cifs_ntsd *pntsd = NULL; /* acl obtained from server */ id_mode_to_cifs_acl() local
1077 pntsd = tcon->ses->server->ops->get_acl(cifs_sb, inode, path, id_mode_to_cifs_acl()
1079 if (IS_ERR(pntsd)) { id_mode_to_cifs_acl()
1080 rc = PTR_ERR(pntsd); id_mode_to_cifs_acl()
1095 kfree(pntsd); id_mode_to_cifs_acl()
1100 rc = build_sec_desc(pntsd, pnntsd, secdesclen, nmode, uid, gid, id_mode_to_cifs_acl()
1117 kfree(pntsd); id_mode_to_cifs_acl()
731 parse_sec_desc(struct cifs_sb_info *cifs_sb, struct cifs_ntsd *pntsd, int acl_len, struct cifs_fattr *fattr) parse_sec_desc() argument
H A Dcifssmb.c3908 struct cifs_ntsd *pntsd, __u32 acllen, int aclflag) CIFSSMBSetCIFSACL()
3946 if (pntsd && acllen) { CIFSSMBSetCIFSACL()
3948 data_offset, pntsd, acllen); CIFSSMBSetCIFSACL()
3907 CIFSSMBSetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid, struct cifs_ntsd *pntsd, __u32 acllen, int aclflag) CIFSSMBSetCIFSACL() argument

Completed in 103 milliseconds