Home
last modified time | relevance | path

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

/linux-6.15/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.c842 if (acl_len < sizeof(struct smb_ntsd)) in parse_sec_desc()
866 if (le32_to_cpu(pntsd->osidoffset) < sizeof(struct smb_ntsd)) in parse_sec_desc()
884 if (le32_to_cpu(pntsd->gsidoffset) < sizeof(struct smb_ntsd)) in parse_sec_desc()
908 if (dacloffset < sizeof(struct smb_ntsd)) in parse_sec_desc()
920 struct smb_ntsd *pntsd, struct smb_ntsd *ppntsd, in build_sec_desc()
951 offset = sizeof(struct smb_ntsd); in build_sec_desc()
1029 struct smb_ntsd *parent_pntsd = NULL; in smb_inherit_dacl()
1140 struct smb_ntsd *pntsd; in smb_inherit_dacl()
1157 pntsd_alloc_size = sizeof(struct smb_ntsd) + powner_sid_size + in smb_inherit_dacl()
1170 pntsd_size = sizeof(struct smb_ntsd); 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.c1452 struct smb_ntsd *pntsd, int len, in ksmbd_vfs_set_sd_xattr()
1528 struct smb_ntsd **pntsd) in ksmbd_vfs_get_sd_xattr()
1573 if (acl.sd_size < sizeof(struct smb_ntsd)) { in ksmbd_vfs_get_sd_xattr()
H A Dsmb2pdu.c3367 struct smb_ntsd *pntsd; in smb2_open()
3376 pntsd = kmalloc(sizeof(struct smb_ntsd) + in smb2_open()
5614 struct smb_ntsd *pntsd = (struct smb_ntsd *)rsp->Buffer, *ppntsd = NULL; in smb2_get_info_sec()
5635 secdesclen = sizeof(struct smb_ntsd); in smb2_get_info_sec()
6437 struct smb_ntsd *pntsd = (struct smb_ntsd *)buffer; in smb2_set_info_sec()
/linux-6.15/fs/smb/client/
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 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()
1279 static int build_sec_desc(struct smb_ntsd *pntsd, struct smb_ntsd *pnntsd, in build_sec_desc()
1309 ndacloffset = sizeof(struct smb_ntsd); in build_sec_desc()
1327 ndacloffset = sizeof(struct smb_ntsd); in build_sec_desc()
1419 struct smb_ntsd *pntsd = NULL; in get_cifs_acl_by_fid()
1443 struct smb_ntsd *pntsd = NULL; in get_cifs_acl_by_path()
1491 struct smb_ntsd *pntsd = NULL; in get_cifs_acl()
1505 int set_cifs_acl(struct smb_ntsd *pnntsd, __u32 acllen, in set_cifs_acl()
[all …]
H A Dcifsproto.h241 extern struct smb_ntsd *get_cifs_acl(struct cifs_sb_info *cifssmb, struct inode *ino,
243 extern struct smb_ntsd *get_cifs_acl_by_fid(struct cifs_sb_info *cifssb,
249 extern int set_cifs_acl(struct smb_ntsd *pntsd, __u32 len, struct inode *ino,
569 __u16 fid, struct smb_ntsd **acl_inf, __u32 *buflen, __u32 info);
571 struct smb_ntsd *pntsd, __u32 len, int aclflag);
H A Dxattr.c170 struct smb_ntsd *pacl; in cifs_xattr_set()
332 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.c3042 static struct smb_ntsd *
3046 struct smb_ntsd *pntsd = NULL; in get_smb2_acl_by_fid()
3071 static struct smb_ntsd *
3075 struct smb_ntsd *pntsd = NULL; in get_smb2_acl_by_path()
3138 set_smb2_acl(struct smb_ntsd *pnntsd, __u32 acllen, in set_smb2_acl()
3196 static struct smb_ntsd *
3201 struct smb_ntsd *pntsd = NULL; in get_smb2_acl()
H A Dcifssmb.c3403 struct smb_ntsd **acl_inf, __u32 *pbuflen, __u32 info) in CIFSSMBGetCIFSACL()
3472 if ((*pbuflen < sizeof(struct smb_ntsd) + 8) || in CIFSSMBGetCIFSACL()
3492 struct smb_ntsd *pntsd, __u32 acllen, int aclflag) in CIFSSMBSetCIFSACL()
H A Dsmb2pdu.c5703 struct smb_ntsd *pnntsd, int pacllen, int aclflag) in SMB2_set_acl()
/linux-6.15/fs/smb/common/
H A Dsmbacl.h88 struct smb_ntsd { struct