smb_ntsd
struct smb_ntsd *pntsd, int acl_len, struct cifs_fattr *fattr,
static int build_sec_desc(struct smb_ntsd *pntsd, struct smb_ntsd *pnntsd,
ndacloffset = sizeof(struct smb_ntsd);
ndacloffset = sizeof(struct smb_ntsd);
struct smb_ntsd *get_cifs_acl_by_fid(struct cifs_sb_info *cifs_sb,
struct smb_ntsd *pntsd = NULL;
static struct smb_ntsd *get_cifs_acl_by_path(struct cifs_sb_info *cifs_sb,
struct smb_ntsd *pntsd = NULL;
struct smb_ntsd *get_cifs_acl(struct cifs_sb_info *cifs_sb,
struct smb_ntsd *pntsd = NULL;
int set_cifs_acl(struct smb_ntsd *pnntsd, __u32 acllen,
struct smb_ntsd *pntsd = NULL;
struct smb_ntsd *pntsd = NULL; /* acl obtained from server */
struct smb_ntsd *pnntsd = NULL; /* modified acl to be sent to server */
nsecdesclen = sizeof(struct smb_ntsd) + (sizeof(struct smb_sid) * 2);
static __u32 copy_sec_desc(const struct smb_ntsd *pntsd,
struct smb_ntsd *pnntsd,
pnntsd->dacloffset = cpu_to_le32(sizeof(struct smb_ntsd));
#define MIN_SEC_DESC_LEN (sizeof(struct smb_ntsd) + (2 * MIN_SID_LEN))
#define DEFAULT_SEC_DESC_LEN (sizeof(struct smb_ntsd) + \
struct smb_ntsd * (*get_acl)(struct cifs_sb_info *cifssb, struct inode *ino,
struct smb_ntsd * (*get_acl_by_fid)(struct cifs_sb_info *cifssmb,
int (*set_acl)(struct smb_ntsd *pntsd, __u32 len, struct inode *ino, const char *path,
struct smb_ntsd *get_cifs_acl(struct cifs_sb_info *cifs_sb,
struct smb_ntsd *get_cifs_acl_by_fid(struct cifs_sb_info *cifs_sb,
int set_cifs_acl(struct smb_ntsd *pnntsd, __u32 acllen, struct inode *inode,
struct smb_ntsd **acl_inf, __u32 *pbuflen, __u32 info)
if ((*pbuflen < sizeof(struct smb_ntsd) + 8) ||
struct smb_ntsd *pntsd, __u32 acllen, int aclflag)
__u16 fid, struct smb_ntsd **acl_inf, __u32 *pbuflen,
__u16 fid, struct smb_ntsd *pntsd, __u32 acllen,
static struct smb_ntsd *
struct smb_ntsd *pntsd = NULL;
static struct smb_ntsd *
struct smb_ntsd *pntsd = NULL;
set_smb2_acl(struct smb_ntsd *pnntsd, __u32 acllen,
static struct smb_ntsd *
struct smb_ntsd *pntsd = NULL;
struct smb_ntsd *pnntsd, int pacllen, int aclflag)
u64 persistent_fid, u64 volatile_fid, struct smb_ntsd *pnntsd,
struct smb_ntsd *pacl;
struct smb_ntsd *pacl;
struct smb_ntsd *pntsd;
struct smb_ntsd *pntsd = NULL, *ppntsd = NULL;
pntsd = kzalloc(ALIGN(sizeof(struct smb_ntsd), 8),
secdesclen = sizeof(struct smb_ntsd);
struct smb_ntsd *pntsd = (struct smb_ntsd *)buffer;
struct smb_ntsd ntsd;
struct smb_ntsd *parent_pntsd = NULL;
struct smb_ntsd *pntsd;
pntsd_alloc_size = sizeof(struct smb_ntsd) + powner_sid_size +
pntsd_size = sizeof(struct smb_ntsd);
struct smb_ntsd *pntsd = NULL;
const struct path *path, struct smb_ntsd *pntsd, int ntsd_len,
int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd,
if (acl_len < sizeof(struct smb_ntsd))
if (le32_to_cpu(pntsd->osidoffset) < sizeof(struct smb_ntsd))
if (le32_to_cpu(pntsd->gsidoffset) < sizeof(struct smb_ntsd))
if (dacloffset < sizeof(struct smb_ntsd))
struct smb_ntsd *ppntsd, int ppntsd_size, int addition_info)
size_t len = sizeof(struct smb_ntsd);
struct smb_ntsd *pntsd, struct smb_ntsd *ppntsd,
offset = sizeof(struct smb_ntsd);
const struct path *path, struct smb_ntsd *pntsd, int ntsd_len,
struct smb_ntsd *ppntsd, int ppntsd_size, int addition_info);
int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd,
int build_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd,
struct smb_ntsd *ppntsd, int ppntsd_size, int addition_info,
struct smb_ntsd *pntsd, int len,
struct smb_ntsd **pntsd)
if (acl.sd_size < sizeof(struct smb_ntsd)) {
struct smb_ntsd *pntsd, int len,
struct smb_ntsd **pntsd);