Home
last modified time | relevance | path

Searched refs:smb_ntsd (Results 1 – 16 of 16) sorted by relevance

/linux/fs/smb/server/
H A Dsmbacl.h84 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd,
86 int build_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd,
87 struct smb_ntsd *ppntsd, int ppntsd_size, int addition_info,
100 const struct path *path, struct smb_ntsd *pntsd, int ntsd_len,
H A Dsmbacl.c824 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, in parse_sec_desc()
837 if (acl_len < sizeof(struct smb_ntsd)) in parse_sec_desc()
861 if (le32_to_cpu(pntsd->osidoffset) < sizeof(struct smb_ntsd)) in parse_sec_desc()
879 if (le32_to_cpu(pntsd->gsidoffset) < sizeof(struct smb_ntsd)) in parse_sec_desc()
903 if (dacloffset < sizeof(struct smb_ntsd)) in parse_sec_desc()
915 struct smb_ntsd *pntsd, struct smb_ntsd *ppntsd, in build_sec_desc()
946 offset = sizeof(struct smb_ntsd); in build_sec_desc()
1024 struct smb_ntsd *parent_pntsd = NULL; in smb_inherit_dacl()
1130 struct smb_ntsd *pntsd; in smb_inherit_dacl()
1147 pntsd_alloc_size = sizeof(struct smb_ntsd) + powner_sid_size + in smb_inherit_dacl()
[all …]
H A Dvfs.h150 struct smb_ntsd *pntsd, int len,
155 struct smb_ntsd **pntsd);
H A Dsmb2pdu.h394 struct smb_ntsd ntsd;
H A Dvfs.c1464 struct smb_ntsd *pntsd, int len, in ksmbd_vfs_set_sd_xattr()
1540 struct smb_ntsd **pntsd) in ksmbd_vfs_get_sd_xattr()
1585 if (acl.sd_size < sizeof(struct smb_ntsd)) { in ksmbd_vfs_get_sd_xattr()
H A Dsmb2pdu.c3338 struct smb_ntsd *pntsd; in smb2_open()
3347 pntsd = kmalloc(sizeof(struct smb_ntsd) + in smb2_open()
5585 struct smb_ntsd *pntsd = (struct smb_ntsd *)rsp->Buffer, *ppntsd = NULL; in smb2_get_info_sec()
5606 secdesclen = sizeof(struct smb_ntsd); in smb2_get_info_sec()
6408 struct smb_ntsd *pntsd = (struct smb_ntsd *)buffer; in smb2_set_info_sec()
/linux/fs/smb/client/
H A Dcifsacl.c518 static __u32 copy_sec_desc(const struct smb_ntsd *pntsd, in copy_sec_desc()
519 struct smb_ntsd *pnntsd, in copy_sec_desc()
530 pnntsd->dacloffset = cpu_to_le32(sizeof(struct smb_ntsd)); in copy_sec_desc()
1206 struct smb_ntsd *pntsd, int acl_len, struct cifs_fattr *fattr, in parse_sec_desc()
1264 static int build_sec_desc(struct smb_ntsd *pntsd, struct smb_ntsd *pnntsd, in build_sec_desc()
1294 ndacloffset = sizeof(struct smb_ntsd); in build_sec_desc()
1312 ndacloffset = sizeof(struct smb_ntsd); in build_sec_desc()
1400 struct smb_ntsd *get_cifs_acl_by_fid(struct cifs_sb_info *cifs_sb, in get_cifs_acl_by_fid()
1404 struct smb_ntsd *pntsd = NULL; in get_cifs_acl_by_fid()
1425 static struct smb_ntsd *get_cifs_acl_by_path(struct cifs_sb_info *cifs_sb, in get_cifs_acl_by_path()
[all …]
H A Dcifsacl.h29 #define DEFAULT_SEC_DESC_LEN (sizeof(struct smb_ntsd) + \
108 #define MIN_SEC_DESC_LEN (sizeof(struct smb_ntsd) + (2 * MIN_SID_LEN))
H A Dcifsproto.h236 extern struct smb_ntsd *get_cifs_acl(struct cifs_sb_info *cifssmb, struct inode *ino,
238 extern struct smb_ntsd *get_cifs_acl_by_fid(struct cifs_sb_info *cifssb,
244 extern int set_cifs_acl(struct smb_ntsd *pntsd, __u32 len, struct inode *ino,
560 __u16 fid, struct smb_ntsd **acl_inf, __u32 *buflen, __u32 info);
562 struct smb_ntsd *pntsd, __u32 len, int aclflag);
H A Dxattr.c165 struct smb_ntsd *pacl; in cifs_xattr_set()
318 struct smb_ntsd *pacl; in cifs_xattr_get()
H A Dcifsglob.h576 struct smb_ntsd * (*get_acl)(struct cifs_sb_info *cifssb, struct inode *ino,
578 struct smb_ntsd * (*get_acl_by_fid)(struct cifs_sb_info *cifssmb,
580 int (*set_acl)(struct smb_ntsd *pntsd, __u32 len, struct inode *ino, const char *path,
H A Dsmb2proto.h248 struct smb_ntsd *pnntsd, int pacllen, int aclflag);
H A Dsmb2ops.c3034 static struct smb_ntsd *
3038 struct smb_ntsd *pntsd = NULL; in get_smb2_acl_by_fid()
3063 static struct smb_ntsd *
3067 struct smb_ntsd *pntsd = NULL; in get_smb2_acl_by_path()
3130 set_smb2_acl(struct smb_ntsd *pnntsd, __u32 acllen, in set_smb2_acl()
3188 static struct smb_ntsd *
3193 struct smb_ntsd *pntsd = NULL; in get_smb2_acl()
H A Dcifssmb.c3373 struct smb_ntsd **acl_inf, __u32 *pbuflen, __u32 info) in CIFSSMBGetCIFSACL()
3443 if ((*pbuflen < sizeof(struct smb_ntsd) + 8) || in CIFSSMBGetCIFSACL()
3463 struct smb_ntsd *pntsd, __u32 acllen, int aclflag) in CIFSSMBSetCIFSACL()
H A Dsmb2pdu.c5707 struct smb_ntsd *pnntsd, int pacllen, int aclflag) in SMB2_set_acl()
/linux/fs/smb/common/
H A Dsmbacl.h88 struct smb_ntsd { struct