/linux-master/drivers/target/iscsi/ |
H A D | iscsi_target_nodeattrib.c | 28 struct iscsi_node_acl *acl, 31 struct iscsi_node_attrib *a = &acl->node_attrib; 45 struct iscsi_node_acl *acl, 48 struct iscsi_node_attrib *a = &acl->node_attrib; 64 " %s\n", a->dataout_timeout, iscsit_na_get_initiatorname(acl)); 70 struct iscsi_node_acl *acl, 73 struct iscsi_node_attrib *a = &acl->node_attrib; 90 iscsit_na_get_initiatorname(acl)); 96 struct iscsi_node_acl *acl, 99 struct iscsi_node_attrib *a = &acl 27 iscsit_set_default_node_attribues( struct iscsi_node_acl *acl, struct iscsi_portal_group *tpg) argument 44 iscsit_na_dataout_timeout( struct iscsi_node_acl *acl, u32 dataout_timeout) argument 69 iscsit_na_dataout_timeout_retries( struct iscsi_node_acl *acl, u32 dataout_timeout_retries) argument 95 iscsit_na_nopin_timeout( struct iscsi_node_acl *acl, u32 nopin_timeout) argument 150 iscsit_na_nopin_response_timeout( struct iscsi_node_acl *acl, u32 nopin_response_timeout) argument 176 iscsit_na_random_datain_pdu_offsets( struct iscsi_node_acl *acl, u32 random_datain_pdu_offsets) argument 196 iscsit_na_random_datain_seq_offsets( struct iscsi_node_acl *acl, u32 random_datain_seq_offsets) argument 216 iscsit_na_random_r2t_offsets( struct iscsi_node_acl *acl, u32 random_r2t_offsets) argument 236 iscsit_na_default_erl( struct iscsi_node_acl *acl, u32 default_erl) argument [all...] |
/linux-master/fs/9p/ |
H A D | acl.c | 15 #include "acl.h" 24 struct posix_acl *acl = NULL; local 38 acl = ERR_PTR(size); 40 acl = ERR_PTR(-ENODATA); 42 acl = posix_acl_from_xattr(&init_user_ns, value, size); 44 return acl; 50 struct posix_acl *acl = NULL; local 56 acl = v9fs_fid_get_acl(fid, name); 58 return acl; 64 struct posix_acl *acl local 112 struct posix_acl *acl; local 154 v9fs_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument 248 v9fs_set_acl(struct p9_fid *fid, int type, struct posix_acl *acl) argument 285 struct posix_acl *acl; local 301 v9fs_set_create_acl(struct inode *inode, struct p9_fid *fid, struct posix_acl *dacl, struct posix_acl *acl) argument 311 v9fs_put_acl(struct posix_acl *dacl, struct posix_acl *acl) argument 323 struct posix_acl *acl = NULL; local [all...] |
/linux-master/fs/nfs_common/ |
H A D | nfsacl.c | 37 struct posix_acl *acl; member in struct:nfsacl_encode_desc 44 struct posix_acl acl; member in struct:nfsacl_simple_acl 56 &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; 86 * @acl: posix_acl to encode 93 struct posix_acl *acl, int encode_entries, int typeflag) 95 int entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; 102 .acl = acl, 92 nfsacl_encode(struct xdr_buf *buf, unsigned int base, struct inode *inode, struct posix_acl *acl, int encode_entries, int typeflag) argument 152 nfs_stream_encode_acl(struct xdr_stream *xdr, struct inode *inode, struct posix_acl *acl, int encode_entries, int typeflag) argument 213 struct posix_acl *acl; member in struct:nfsacl_decode_desc 290 posix_acl_from_nfsacl(struct posix_acl *acl) argument [all...] |
/linux-master/drivers/target/ |
H A D | target_core_tpg.c | 44 struct se_node_acl *acl; local 46 list_for_each_entry(acl, &tpg->acl_node_list, acl_list) { 47 if (!strcmp(acl->initiatorname, initiatorname)) 48 return acl; 62 struct se_node_acl *acl; local 65 * initiatorname[] during node acl endpoint lookup driven by 73 acl = __core_tpg_get_initiator_node_acl(tpg, initiatorname); 74 if (acl) { 75 if (!kref_get_unless_zero(&acl->acl_kref)) 76 acl 104 core_tpg_add_node_to_devs( struct se_node_acl *acl, struct se_portal_group *tpg, struct se_lun *lun_orig) argument 157 target_set_nacl_queue_depth(struct se_portal_group *tpg, struct se_node_acl *acl, u32 queue_depth) argument 173 struct se_node_acl *acl; local 205 target_add_node_acl(struct se_node_acl *acl) argument 226 struct se_node_acl *acl; local 246 struct se_node_acl *acl; local 293 struct se_node_acl *acl; local 324 target_shutdown_sessions(struct se_node_acl *acl) argument 345 core_tpg_del_initiator_node_acl(struct se_node_acl *acl) argument 379 core_tpg_set_initiator_node_queue_depth( struct se_node_acl *acl, u32 queue_depth) argument 419 core_tpg_set_initiator_node_tag( struct se_portal_group *tpg, struct se_node_acl *acl, const char *new_tag) argument [all...] |
/linux-master/fs/smb/server/ |
H A D | ndr.h | 18 struct inode *inode, struct xattr_smb_acl *acl, 20 int ndr_encode_v4_ntacl(struct ndr *n, struct xattr_ntacl *acl); 21 int ndr_encode_v3_ntacl(struct ndr *n, struct xattr_ntacl *acl); 22 int ndr_decode_v4_ntacl(struct ndr *n, struct xattr_ntacl *acl);
|
H A D | ndr.c | 296 static int ndr_encode_posix_acl_entry(struct ndr *n, struct xattr_smb_acl *acl) argument 300 ret = ndr_write_int32(n, acl->count); 305 ret = ndr_write_int32(n, acl->count); 313 for (i = 0; i < acl->count; i++) { 315 ret = ndr_write_int16(n, acl->entries[i].type); 319 ret = ndr_write_int16(n, acl->entries[i].type); 323 if (acl->entries[i].type == SMB_ACL_USER) { 325 ret = ndr_write_int64(n, acl->entries[i].uid); 326 } else if (acl->entries[i].type == SMB_ACL_GROUP) { 328 ret = ndr_write_int64(n, acl 340 ndr_encode_posix_acl(struct ndr *n, struct mnt_idmap *idmap, struct inode *inode, struct xattr_smb_acl *acl, struct xattr_smb_acl *def_acl) argument 397 ndr_encode_v4_ntacl(struct ndr *n, struct xattr_ntacl *acl) argument 450 ndr_decode_v4_ntacl(struct ndr *n, struct xattr_ntacl *acl) argument [all...] |
/linux-master/fs/ext4/ |
H A D | acl.c | 3 * linux/fs/ext4/acl.c 12 #include "acl.h" 22 struct posix_acl *acl; local 37 acl = posix_acl_alloc(count, GFP_NOFS); 38 if (!acl) 45 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); 46 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); 48 switch (acl->a_entries[n].e_tag) { 61 acl->a_entries[n].e_uid = 69 acl 91 ext4_acl_to_disk(const struct posix_acl *acl, size_t *size) argument 149 struct posix_acl *acl; local 189 __ext4_set_acl(handle_t *handle, struct inode *inode, int type, struct posix_acl *acl, int xattr_flags) argument 228 ext4_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument 281 struct posix_acl *default_acl, *acl; local [all...] |
/linux-master/fs/reiserfs/ |
H A D | xattr_acl.c | 12 #include "acl.h" 17 struct posix_acl *acl); 22 struct posix_acl *acl, int type) 27 int size = acl ? posix_acl_xattr_size(acl->a_count) : 0; 44 if (type == ACL_TYPE_ACCESS && acl) { 46 &mode, &acl); 51 error = __reiserfs_set_acl(&th, inode, type, acl); 72 struct posix_acl *acl; local 87 acl 21 reiserfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument 138 reiserfs_posix_acl_to_disk(const struct posix_acl *acl, size_t * size) argument 197 struct posix_acl *acl; local 250 __reiserfs_set_acl(struct reiserfs_transaction_handle *th, struct inode *inode, int type, struct posix_acl *acl) argument 310 struct posix_acl *default_acl, *acl; local 369 struct posix_acl *acl; local [all...] |
/linux-master/fs/jffs2/ |
H A D | acl.c | 60 struct posix_acl *acl; local 81 acl = posix_acl_alloc(count, GFP_KERNEL); 82 if (!acl) 89 acl->a_entries[i].e_tag = je16_to_cpu(entry->e_tag); 90 acl->a_entries[i].e_perm = je16_to_cpu(entry->e_perm); 91 switch (acl->a_entries[i].e_tag) { 103 acl->a_entries[i].e_uid = 111 acl->a_entries[i].e_gid = 122 return acl; 124 posix_acl_release(acl); 128 jffs2_acl_to_medium(const struct posix_acl *acl, size_t *size) argument 178 struct posix_acl *acl; local 213 __jffs2_set_acl(struct inode *inode, int xprefix, struct posix_acl *acl) argument 232 jffs2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument 276 struct posix_acl *default_acl, *acl; local [all...] |
/linux-master/fs/ext2/ |
H A D | acl.c | 3 * linux/fs/ext2/acl.c 14 #include "acl.h" 24 struct posix_acl *acl; local 39 acl = posix_acl_alloc(count, GFP_KERNEL); 40 if (!acl) 47 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); 48 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); 49 switch(acl->a_entries[n].e_tag) { 62 acl->a_entries[n].e_uid = 70 acl 92 ext2_acl_to_disk(const struct posix_acl *acl, size_t *size) argument 148 struct posix_acl *acl; local 183 __ext2_set_acl(struct inode *inode, struct posix_acl *acl, int type) argument 222 ext2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument 255 struct posix_acl *default_acl, *acl; local [all...] |
/linux-master/fs/orangefs/ |
H A D | acl.c | 15 struct posix_acl *acl; local 53 acl = posix_acl_from_xattr(&init_user_ns, value, ret); 55 acl = NULL; 57 gossip_err("inode %pU retrieving acl's failed with error %d\n", 60 acl = ERR_PTR(ret); 64 return acl; 67 int __orangefs_set_acl(struct inode *inode, struct posix_acl *acl, int type) argument 92 if (acl) { 93 size = posix_acl_xattr_size(acl->a_count); 98 error = posix_acl_to_xattr(&init_user_ns, acl, valu 121 orangefs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument [all...] |
/linux-master/fs/btrfs/ |
H A D | acl.c | 16 #include "acl.h" 23 struct posix_acl *acl; local 47 acl = posix_acl_from_xattr(&init_user_ns, value, size); 49 acl = NULL; 51 acl = ERR_PTR(size); 54 return acl; 58 struct posix_acl *acl, int type) 70 return acl ? -EINVAL : 0; 77 if (acl) { 80 size = posix_acl_xattr_size(acl 57 __btrfs_set_acl(struct btrfs_trans_handle *trans, struct inode *inode, struct posix_acl *acl, int type) argument 112 btrfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument [all...] |
H A D | acl.h | 17 struct posix_acl *acl, int type); 19 struct posix_acl *acl, int type); 30 struct inode *inode, struct posix_acl *acl, 29 __btrfs_set_acl(struct btrfs_trans_handle *trans, struct inode *inode, struct posix_acl *acl, int type) argument
|
/linux-master/fs/ceph/ |
H A D | acl.c | 3 * linux/fs/ceph/acl.c 21 int type, struct posix_acl *acl) 27 set_cached_acl(inode, type, acl); 40 struct posix_acl *acl; local 73 acl = posix_acl_from_xattr(&init_user_ns, value, size); 75 acl = NULL; 79 acl = ERR_PTR(-EIO); 84 if (!IS_ERR(acl)) 85 ceph_set_cached_acl(inode, type, acl); 87 return acl; 20 ceph_set_cached_acl(struct inode *inode, int type, struct posix_acl *acl) argument 90 ceph_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument 172 struct posix_acl *acl, *default_acl; local [all...] |
/linux-master/fs/nfsd/ |
H A D | acl.h | 49 struct nfs4_acl **acl); 50 __be32 nfsd4_acl_to_attr(enum nfs_ftype4 type, struct nfs4_acl *acl,
|
/linux-master/fs/gfs2/ |
H A D | acl.h | 15 int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type); 17 struct posix_acl *acl, int type);
|
H A D | acl.c | 19 #include "acl.h" 43 struct posix_acl *acl; local 55 acl = posix_acl_from_xattr(&init_user_ns, data, len); 57 return acl; 65 struct posix_acl *acl; local 77 acl = __gfs2_get_acl(inode, type); 80 return acl; 83 int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type) argument 90 if (acl) { 91 len = posix_acl_xattr_size(acl 112 gfs2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument [all...] |
/linux-master/fs/ |
H A D | posix_acl.c | 49 struct posix_acl *acl; local 53 acl = rcu_dereference(*p); 54 if (!acl || is_uncached_acl(acl) || 55 refcount_inc_not_zero(&acl->a_refcount)) 61 return acl; 67 struct posix_acl *acl = rcu_dereference(*acl_by_type(inode, type)); local 69 if (acl == ACL_DONT_CACHE) { 74 acl = ret; 77 return acl; 81 set_cached_acl(struct inode *inode, int type, struct posix_acl *acl) argument 120 struct posix_acl *acl; local 192 posix_acl_init(struct posix_acl *acl, int count) argument 207 struct posix_acl *acl = kmalloc(size, flags); local 218 posix_acl_clone(const struct posix_acl *acl, gfp_t flags) argument 237 posix_acl_valid(struct user_namespace *user_ns, const struct posix_acl *acl) argument 306 posix_acl_equiv_mode(const struct posix_acl *acl, umode_t *mode_p) argument 354 struct posix_acl *acl = posix_acl_alloc(3, flags); local 375 posix_acl_permission(struct mnt_idmap *idmap, struct inode *inode, const struct posix_acl *acl, int want) argument 453 posix_acl_create_masq(struct posix_acl *acl, umode_t *mode_p) argument 510 __posix_acl_chmod_masq(struct posix_acl *acl, umode_t mode) argument 556 __posix_acl_create(struct posix_acl **acl, gfp_t gfp, umode_t *mode_p) argument 574 __posix_acl_chmod(struct posix_acl **acl, gfp_t gfp, umode_t mode) argument 609 struct posix_acl *acl; local 634 posix_acl_create(struct inode *dir, umode_t *mode, struct posix_acl **default_acl, struct posix_acl **acl) argument 706 posix_acl_update_mode(struct mnt_idmap *idmap, struct inode *inode, umode_t *mode_p, struct posix_acl **acl) argument 780 struct posix_acl *acl; local 834 posix_acl_to_xattr(struct user_namespace *user_ns, const struct posix_acl *acl, void *buffer, size_t size) argument 887 vfs_posix_acl_to_xattr(struct mnt_idmap *idmap, struct inode *inode, const struct posix_acl *acl, void *buffer, size_t size) argument 935 set_posix_acl(struct mnt_idmap *idmap, struct dentry *dentry, int type, struct posix_acl *acl) argument 1016 simple_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument 1038 struct posix_acl *default_acl, *acl; local 1055 vfs_set_acl_idmapped_mnt(struct mnt_idmap *idmap, struct user_namespace *fs_userns, struct posix_acl *acl) argument 1170 struct posix_acl *acl; local 1267 struct posix_acl *acl = NULL; local 1288 struct posix_acl *acl; local [all...] |
/linux-master/fs/jfs/ |
H A D | acl.c | 19 struct posix_acl *acl; local 49 acl = NULL; 51 acl = ERR_PTR(size); 53 acl = posix_acl_from_xattr(&init_user_ns, value, size); 56 return acl; 60 struct posix_acl *acl) 78 if (acl) { 79 size = posix_acl_xattr_size(acl->a_count); 83 rc = posix_acl_to_xattr(&init_user_ns, acl, value, size); 92 set_cached_acl(inode, type, acl); 59 __jfs_set_acl(tid_t tid, struct inode *inode, int type, struct posix_acl *acl) argument 97 jfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument 132 struct posix_acl *default_acl, *acl; local [all...] |
/linux-master/fs/ocfs2/ |
H A D | acl.c | 3 * acl.c 8 * Lots of code in this file is copy from linux/fs/ext3/acl.c. 28 #include "acl.h" 31 * Convert from xattr value to acl struct. 36 struct posix_acl *acl; local 45 acl = posix_acl_alloc(count, GFP_NOFS); 46 if (!acl) 52 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); 53 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); 54 switch(acl 77 ocfs2_acl_to_xattr(const struct posix_acl *acl, size_t *size) argument 118 struct posix_acl *acl; local 214 ocfs2_set_acl(handle_t *handle, struct inode *inode, struct buffer_head *di_bh, int type, struct posix_acl *acl, struct ocfs2_alloc_context *meta_ac, struct ocfs2_alloc_context *data_ac) argument 263 ocfs2_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument 297 struct posix_acl *acl; local 324 struct posix_acl *acl; local 360 struct posix_acl *acl = NULL; local [all...] |
/linux-master/fs/f2fs/ |
H A D | acl.c | 3 * fs/f2fs/acl.c 8 * Portions of this code from linux/fs/ext2/acl.c 15 #include "acl.h" 49 struct posix_acl *acl; local 66 acl = posix_acl_alloc(count, GFP_NOFS); 67 if (!acl) 75 acl->a_entries[i].e_tag = le16_to_cpu(entry->e_tag); 76 acl->a_entries[i].e_perm = le16_to_cpu(entry->e_perm); 78 switch (acl->a_entries[i].e_tag) { 88 acl 113 f2fs_acl_to_disk(struct f2fs_sb_info *sbi, const struct posix_acl *acl, size_t *size) argument 173 struct posix_acl *acl; local 207 f2fs_acl_update_mode(struct mnt_idmap *idmap, struct inode *inode, umode_t *mode_p, struct posix_acl **acl) argument 229 __f2fs_set_acl(struct mnt_idmap *idmap, struct inode *inode, int type, struct posix_acl *acl, struct page *ipage) argument 279 f2fs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument 294 f2fs_acl_clone(const struct posix_acl *acl, gfp_t flags) argument 309 f2fs_acl_create_masq(struct posix_acl *acl, umode_t *mode_p) argument 363 f2fs_acl_create(struct inode *dir, umode_t *mode, struct posix_acl **default_acl, struct posix_acl **acl, struct page *dpage) argument 417 struct posix_acl *default_acl = NULL, *acl = NULL; local [all...] |
/linux-master/fs/xfs/ |
H A D | xfs_acl.h | 15 struct posix_acl *acl, int type); 16 extern int __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type); 21 static inline int __xfs_set_acl(struct inode *inode, struct posix_acl *acl, argument
|
H A D | xfs_acl.c | 38 struct posix_acl *acl; local 55 acl = posix_acl_alloc(count, GFP_KERNEL); 56 if (!acl) 60 acl_e = &acl->a_entries[i]; 90 return acl; 93 posix_acl_release(acl); 98 xfs_acl_to_disk(struct xfs_acl *aclp, const struct posix_acl *acl) argument 104 aclp->acl_cnt = cpu_to_be32(acl->a_count); 105 for (i = 0; i < acl->a_count; i++) { 107 acl_e = &acl 133 struct posix_acl *acl = NULL; local 175 __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type) argument 245 xfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument [all...] |
/linux-master/fs/nfs/ |
H A D | nfs3_fs.h | 16 struct posix_acl *acl, int type); 17 extern int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, 21 static inline int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, argument
|
/linux-master/include/linux/ |
H A D | posix_acl.h | 36 #define FOREACH_ACL_ENTRY(pa, acl, pe) \ 37 for(pa=(acl)->a_entries, pe=pa+(acl)->a_count; pa<pe; pa++) 44 posix_acl_dup(struct posix_acl *acl) argument 46 if (acl) 47 refcount_inc(&acl->a_refcount); 48 return acl; 55 posix_acl_release(struct posix_acl *acl) argument 57 if (acl && refcount_dec_and_test(&acl 128 posix_acl_create(struct inode *inode, umode_t *mode, struct posix_acl **default_acl, struct posix_acl **acl) argument 139 vfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, struct posix_acl *acl) argument [all...] |