Home
last modified time | relevance | path

Searched refs:a_entries (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/fs/nfs_common/
Dnfsacl.c56 &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_encode()
124 acl2->a_entries[0] = acl->a_entries[0]; /* ACL_USER_OBJ */ in nfsacl_encode()
125 acl2->a_entries[1] = acl->a_entries[1]; /* ACL_GROUP_OBJ */ in nfsacl_encode()
126 acl2->a_entries[2] = acl->a_entries[1]; /* ACL_MASK */ in nfsacl_encode()
127 acl2->a_entries[2].e_tag = ACL_MASK; in nfsacl_encode()
128 acl2->a_entries[3] = acl->a_entries[2]; /* ACL_OTHER */ in nfsacl_encode()
189 acl2->a_entries[0] = acl->a_entries[0]; /* ACL_USER_OBJ */ in nfs_stream_encode_acl()
190 acl2->a_entries[1] = acl->a_entries[1]; /* ACL_GROUP_OBJ */ in nfs_stream_encode_acl()
191 acl2->a_entries[2] = acl->a_entries[1]; /* ACL_MASK */ in nfs_stream_encode_acl()
192 acl2->a_entries[2].e_tag = ACL_MASK; in nfs_stream_encode_acl()
[all …]
/linux-6.1.9/fs/reiserfs/
Dxattr_acl.c93 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in reiserfs_posix_acl_from_disk()
94 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in reiserfs_posix_acl_from_disk()
95 switch (acl->a_entries[n].e_tag) { in reiserfs_posix_acl_from_disk()
108 acl->a_entries[n].e_uid = in reiserfs_posix_acl_from_disk()
116 acl->a_entries[n].e_gid = in reiserfs_posix_acl_from_disk()
153 const struct posix_acl_entry *acl_e = &acl->a_entries[n]; in reiserfs_posix_acl_to_disk()
155 entry->e_tag = cpu_to_le16(acl->a_entries[n].e_tag); in reiserfs_posix_acl_to_disk()
156 entry->e_perm = cpu_to_le16(acl->a_entries[n].e_perm); in reiserfs_posix_acl_to_disk()
157 switch (acl->a_entries[n].e_tag) { in reiserfs_posix_acl_to_disk()
/linux-6.1.9/fs/f2fs/
Dacl.c75 acl->a_entries[i].e_tag = le16_to_cpu(entry->e_tag); in f2fs_acl_from_disk()
76 acl->a_entries[i].e_perm = le16_to_cpu(entry->e_perm); in f2fs_acl_from_disk()
78 switch (acl->a_entries[i].e_tag) { in f2fs_acl_from_disk()
88 acl->a_entries[i].e_uid = in f2fs_acl_from_disk()
95 acl->a_entries[i].e_gid = in f2fs_acl_from_disk()
131 entry->e_tag = cpu_to_le16(acl->a_entries[i].e_tag); in f2fs_acl_to_disk()
132 entry->e_perm = cpu_to_le16(acl->a_entries[i].e_perm); in f2fs_acl_to_disk()
134 switch (acl->a_entries[i].e_tag) { in f2fs_acl_to_disk()
138 acl->a_entries[i].e_uid)); in f2fs_acl_to_disk()
145 acl->a_entries[i].e_gid)); in f2fs_acl_to_disk()
/linux-6.1.9/fs/ocfs2/
Dacl.c52 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in ocfs2_acl_from_xattr()
53 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in ocfs2_acl_from_xattr()
54 switch(acl->a_entries[n].e_tag) { in ocfs2_acl_from_xattr()
56 acl->a_entries[n].e_uid = in ocfs2_acl_from_xattr()
61 acl->a_entries[n].e_gid = in ocfs2_acl_from_xattr()
91 entry->e_tag = cpu_to_le16(acl->a_entries[n].e_tag); in ocfs2_acl_to_xattr()
92 entry->e_perm = cpu_to_le16(acl->a_entries[n].e_perm); in ocfs2_acl_to_xattr()
93 switch(acl->a_entries[n].e_tag) { in ocfs2_acl_to_xattr()
97 acl->a_entries[n].e_uid)); in ocfs2_acl_to_xattr()
102 acl->a_entries[n].e_gid)); in ocfs2_acl_to_xattr()
/linux-6.1.9/fs/jffs2/
Dacl.c89 acl->a_entries[i].e_tag = je16_to_cpu(entry->e_tag); in jffs2_acl_from_medium()
90 acl->a_entries[i].e_perm = je16_to_cpu(entry->e_perm); in jffs2_acl_from_medium()
91 switch (acl->a_entries[i].e_tag) { in jffs2_acl_from_medium()
103 acl->a_entries[i].e_uid = in jffs2_acl_from_medium()
111 acl->a_entries[i].e_gid = in jffs2_acl_from_medium()
136 header = kmalloc(struct_size(header, a_entries, acl->a_count), in jffs2_acl_to_medium()
143 const struct posix_acl_entry *acl_e = &acl->a_entries[i]; in jffs2_acl_to_medium()
Dacl.h25 struct jffs2_acl_entry a_entries[]; member
/linux-6.1.9/fs/ext2/
Dacl.c47 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in ext2_acl_from_disk()
48 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in ext2_acl_from_disk()
49 switch(acl->a_entries[n].e_tag) { in ext2_acl_from_disk()
62 acl->a_entries[n].e_uid = in ext2_acl_from_disk()
70 acl->a_entries[n].e_gid = in ext2_acl_from_disk()
106 const struct posix_acl_entry *acl_e = &acl->a_entries[n]; in ext2_acl_to_disk()
/linux-6.1.9/fs/ext4/
Dacl.c45 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in ext4_acl_from_disk()
46 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in ext4_acl_from_disk()
48 switch (acl->a_entries[n].e_tag) { in ext4_acl_from_disk()
61 acl->a_entries[n].e_uid = in ext4_acl_from_disk()
69 acl->a_entries[n].e_gid = in ext4_acl_from_disk()
105 const struct posix_acl_entry *acl_e = &acl->a_entries[n]; in ext4_acl_to_disk()
/linux-6.1.9/fs/nfsd/
Dnfs4acl.c201 pe = acl->a_entries + acl->a_count; in summarize_posix_acl()
246 pa = pacl->a_entries; in _posix_to_nfsv4_one()
383 if (pace_gt(&pacl->a_entries[i], in sort_pacl_range()
384 &pacl->a_entries[i+1])) { in sort_pacl_range()
386 swap(pacl->a_entries[i], in sort_pacl_range()
387 pacl->a_entries[i + 1]); in sort_pacl_range()
405 while (pacl->a_entries[i].e_tag == ACL_USER) in sort_pacl()
409 BUG_ON(pacl->a_entries[i].e_tag != ACL_GROUP_OBJ); in sort_pacl()
411 while (pacl->a_entries[j].e_tag == ACL_GROUP) in sort_pacl()
519 pace = pacl->a_entries; in posix_state_to_acl()
/linux-6.1.9/include/linux/
Dposix_acl.h33 struct posix_acl_entry a_entries[]; member
37 for(pa=(acl)->a_entries, pe=pa+(acl)->a_count; pa<pe; pa++)
/linux-6.1.9/fs/
Dposix_acl.c344 acl->a_entries[0].e_tag = ACL_USER_OBJ; in posix_acl_from_mode()
345 acl->a_entries[0].e_perm = (mode & S_IRWXU) >> 6; in posix_acl_from_mode()
347 acl->a_entries[1].e_tag = ACL_GROUP_OBJ; in posix_acl_from_mode()
348 acl->a_entries[1].e_perm = (mode & S_IRWXG) >> 3; in posix_acl_from_mode()
350 acl->a_entries[2].e_tag = ACL_OTHER; in posix_acl_from_mode()
351 acl->a_entries[2].e_perm = (mode & S_IRWXO); in posix_acl_from_mode()
863 acl_e = acl->a_entries; in make_posix_acl()
1095 const struct posix_acl_entry *acl_e = &acl->a_entries[n]; in posix_acl_to_xattr()
/linux-6.1.9/fs/xfs/
Dxfs_acl.c60 acl_e = &acl->a_entries[i]; in xfs_acl_from_disk()
107 acl_e = &acl->a_entries[i]; in xfs_acl_to_disk()
/linux-6.1.9/fs/ksmbd/
Dsmbacl.c555 cf_pace = fattr->cf_acls->a_entries; in parse_dacl()
569 cf_pdace = fattr->cf_dacls->a_entries; in parse_dacl()
591 pace = fattr->cf_acls->a_entries; in set_posix_acl_entries_dacl()
660 pace = fattr->cf_dacls->a_entries; in set_posix_acl_entries_dacl()
1296 pa_entry = posix_acls->a_entries; in smb_check_perm_dacl()
Dvfs.c1389 pa_entry = posix_acls->a_entries; in ksmbd_vfs_make_xattr_posix_acl()
1858 posix_state_to_acl(&acl_state, acls->a_entries); in ksmbd_vfs_set_init_posix_acl()
1864 posix_state_to_acl(&acl_state, acls->a_entries); in ksmbd_vfs_set_init_posix_acl()
1889 pace = acls->a_entries; in ksmbd_vfs_inherit_posix_acl()
/linux-6.1.9/fs/overlayfs/
Dinode.c473 struct posix_acl_entry *e = &acl->a_entries[i]; in ovl_idmap_posix_acl()