Lines Matching refs:cifs_sb
339 sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid, in sid_to_id() argument
346 kuid_t fuid = cifs_sb->ctx->linux_uid; in sid_to_id()
347 kgid_t fgid = cifs_sb->ctx->linux_gid; in sid_to_id()
359 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UID_FROM_ACL) || in sid_to_id()
360 (cifs_sb_master_tcon(cifs_sb)->posix_extensions)) { in sid_to_id()
1193 static int parse_sec_desc(struct cifs_sb_info *cifs_sb, in parse_sec_desc() argument
1222 rc = sid_to_id(cifs_sb, owner_sid_ptr, fattr, SIDOWNER); in parse_sec_desc()
1235 rc = sid_to_id(cifs_sb, group_sid_ptr, fattr, SIDGROUP); in parse_sec_desc()
1388 struct cifs_ntsd *get_cifs_acl_by_fid(struct cifs_sb_info *cifs_sb, in get_cifs_acl_by_fid() argument
1395 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_fid()
1413 static struct cifs_ntsd *get_cifs_acl_by_path(struct cifs_sb_info *cifs_sb, in get_cifs_acl_by_path() argument
1421 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in get_cifs_acl_by_path()
1433 .cifs_sb = cifs_sb, in get_cifs_acl_by_path()
1435 .create_options = cifs_create_options(cifs_sb, 0), in get_cifs_acl_by_path()
1457 struct cifs_ntsd *get_cifs_acl(struct cifs_sb_info *cifs_sb, in get_cifs_acl() argument
1467 return get_cifs_acl_by_path(cifs_sb, path, pacllen); in get_cifs_acl()
1469 pntsd = get_cifs_acl_by_fid(cifs_sb, &open_file->fid, pacllen, info); in get_cifs_acl()
1482 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in set_cifs_acl() local
1483 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in set_cifs_acl()
1500 .cifs_sb = cifs_sb, in set_cifs_acl()
1502 .create_options = cifs_create_options(cifs_sb, 0), in set_cifs_acl()
1527 cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr, in cifs_acl_to_fattr() argument
1534 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in cifs_acl_to_fattr()
1546 pntsd = ops->get_acl_by_fid(cifs_sb, pfid, &acllen, info); in cifs_acl_to_fattr()
1548 pntsd = ops->get_acl(cifs_sb, inode, path, &acllen, info); in cifs_acl_to_fattr()
1558 rc = parse_sec_desc(cifs_sb, pntsd, acllen, fattr, true); in cifs_acl_to_fattr()
1562 rc = parse_sec_desc(cifs_sb, pntsd, acllen, fattr, false); in cifs_acl_to_fattr()
1586 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in id_mode_to_cifs_acl() local
1587 struct tcon_link *tlink = cifs_sb_tlink(cifs_sb); in id_mode_to_cifs_acl()
1606 pntsd = ops->get_acl(cifs_sb, inode, path, &secdesclen, info); in id_mode_to_cifs_acl()
1614 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MODE_FROM_SID) in id_mode_to_cifs_acl()
1619 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UID_FROM_ACL) in id_mode_to_cifs_acl()
1687 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_get_acl() local
1693 tlink = cifs_sb_tlink(cifs_sb); in cifs_get_acl()
1713 cifs_sb->local_nls, in cifs_get_acl()
1714 cifs_remap(cifs_sb)); in cifs_get_acl()
1721 cifs_sb->local_nls, in cifs_get_acl()
1722 cifs_remap(cifs_sb)); in cifs_get_acl()
1750 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_set_acl() local
1756 tlink = cifs_sb_tlink(cifs_sb); in cifs_set_acl()
1790 cifs_sb->local_nls, in cifs_set_acl()
1791 cifs_remap(cifs_sb)); in cifs_set_acl()
1798 cifs_sb->local_nls, in cifs_set_acl()
1799 cifs_remap(cifs_sb)); in cifs_set_acl()