/linux-6.3-rc2/drivers/target/ |
A D | target_core_tpg.c | 47 return acl; in __core_tpg_get_initiator_node_acl() 73 if (acl) { in core_tpg_get_initiator_node_acl() 75 acl = NULL; in core_tpg_get_initiator_node_acl() 79 return acl; in core_tpg_get_initiator_node_acl() 177 if (!acl) in target_alloc_node_acl() 201 return acl; in target_alloc_node_acl() 248 if (acl) in core_tpg_check_initiator_node_acl() 255 if (!acl) in core_tpg_check_initiator_node_acl() 278 return acl; in core_tpg_check_initiator_node_acl() 296 if (acl) { in core_tpg_add_initiator_node_acl() [all …]
|
/linux-6.3-rc2/fs/9p/ |
A D | acl.c | 44 return acl; in v9fs_fid_get_acl() 58 return acl; in v9fs_acl_get() 67 if (!IS_ERR(acl)) in __v9fs_get_acl() 68 return acl; in __v9fs_get_acl() 119 return acl; in v9fs_get_cached_acl() 164 if (acl) { in v9fs_iop_set_acl() 205 if (acl) { in v9fs_iop_set_acl() 255 if (!acl) in v9fs_set_acl() 290 if (acl) { in v9fs_acl_chmod() 329 if (!acl) in v9fs_acl_mode() [all …]
|
/linux-6.3-rc2/fs/ |
A D | posix_acl.c | 55 if (!acl || is_uncached_acl(acl) || in get_cached_acl() 62 return acl; in get_cached_acl() 75 acl = ret; in get_cached_acl_rcu() 78 return acl; in get_cached_acl_rcu() 180 return acl; in __get_acl() 209 if (acl) in posix_acl_alloc() 223 if (acl) { in posix_acl_clone() 316 if (!acl) in posix_acl_equiv_mode() 356 if (!acl) in posix_acl_from_mode() 791 if (!acl) in posix_acl_from_xattr() [all …]
|
/linux-6.3-rc2/fs/nfs_common/ |
A D | nfsacl.c | 37 struct posix_acl *acl; member 44 struct posix_acl acl; member 95 int entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfsacl_encode() 102 .acl = acl, in nfsacl_encode() 113 if (encode_entries && acl && acl->a_count == 3) { in nfsacl_encode() 157 u32 entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfs_stream_encode_acl() 164 .acl = acl, in nfs_stream_encode_acl() 178 if (encode_entries && acl && acl->a_count == 3) { in nfs_stream_encode_acl() 295 if (!acl) in posix_acl_from_nfsacl() 298 sort(acl->a_entries, acl->a_count, sizeof(struct posix_acl_entry), in posix_acl_from_nfsacl() [all …]
|
/linux-6.3-rc2/fs/reiserfs/ |
A D | xattr_acl.c | 27 int size = acl ? posix_acl_xattr_size(acl->a_count) : 0; in reiserfs_set_acl() 72 struct posix_acl *acl; in reiserfs_posix_acl_from_disk() local 88 if (!acl) in reiserfs_posix_acl_from_disk() 128 return acl; in reiserfs_posix_acl_from_disk() 146 acl->a_count * in reiserfs_posix_acl_to_disk() 232 acl = NULL; in reiserfs_get_acl() 240 return acl; in reiserfs_get_acl() 271 if (acl) { in __reiserfs_set_acl() 341 if (acl) { in reiserfs_inherit_default_acl() 344 acl); in reiserfs_inherit_default_acl() [all …]
|
/linux-6.3-rc2/fs/ocfs2/ |
A D | acl.c | 36 struct posix_acl *acl; in ocfs2_acl_from_xattr() local 46 if (!acl) in ocfs2_acl_from_xattr() 71 return acl; in ocfs2_acl_from_xattr() 118 struct posix_acl *acl; in ocfs2_get_acl_nolock() local 144 acl = NULL; in ocfs2_get_acl_nolock() 150 return acl; in ocfs2_get_acl_nolock() 243 if (acl) { in ocfs2_set_acl() 278 &acl); in ocfs2_iop_set_acl() 318 return acl; in ocfs2_iop_get_acl() 370 if (IS_ERR(acl)) in ocfs2_init_acl() [all …]
|
/linux-6.3-rc2/fs/f2fs/ |
A D | acl.c | 49 struct posix_acl *acl; in f2fs_acl_from_disk() local 67 if (!acl) in f2fs_acl_from_disk() 107 return acl; in f2fs_acl_from_disk() 191 acl = NULL; in __f2fs_get_acl() 196 return acl; in __f2fs_get_acl() 221 *acl = NULL; in f2fs_acl_update_mode() 261 if (acl) { in __f2fs_set_acl() 299 if (acl) { in f2fs_acl_clone() 371 *acl = NULL; in f2fs_acl_create() 398 *acl = clone; in f2fs_acl_create() [all …]
|
/linux-6.3-rc2/fs/ext4/ |
A D | acl.c | 22 struct posix_acl *acl; in ext4_acl_from_disk() local 38 if (!acl) in ext4_acl_from_disk() 80 return acl; in ext4_acl_from_disk() 83 posix_acl_release(acl); in ext4_acl_from_disk() 149 struct posix_acl *acl; in ext4_get_acl() local 175 acl = NULL; in ext4_get_acl() 177 acl = ERR_PTR(retval); in ext4_get_acl() 180 return acl; in ext4_get_acl() 211 if (acl) { in __ext4_set_acl() 233 size_t acl_size = acl ? ext4_acl_size(acl->a_count) : 0; in ext4_set_acl() [all …]
|
/linux-6.3-rc2/fs/ext2/ |
A D | acl.c | 24 struct posix_acl *acl; in ext2_acl_from_disk() local 40 if (!acl) in ext2_acl_from_disk() 81 return acl; in ext2_acl_from_disk() 84 posix_acl_release(acl); in ext2_acl_from_disk() 148 struct posix_acl *acl; in ext2_get_acl() local 174 acl = NULL; in ext2_get_acl() 176 acl = ERR_PTR(retval); in ext2_get_acl() 179 return acl; in ext2_get_acl() 204 if (acl) { in __ext2_set_acl() 232 &acl); in ext2_set_acl() [all …]
|
/linux-6.3-rc2/fs/ceph/ |
A D | acl.c | 38 struct posix_acl *acl; in ceph_get_acl() local 73 acl = NULL; in ceph_get_acl() 82 if (!IS_ERR(acl)) in ceph_get_acl() 85 return acl; in ceph_get_acl() 107 if (acl) { in ceph_set_acl() 126 if (acl) { in ceph_set_acl() 180 if (acl) { in ceph_pre_init_acls() 186 acl = NULL; in ceph_pre_init_acls() 193 if (acl) in ceph_pre_init_acls() 212 if (acl) { in ceph_pre_init_acls() [all …]
|
/linux-6.3-rc2/drivers/target/iscsi/ |
A D | iscsi_target_nodeattrib.c | 28 struct iscsi_node_acl *acl, in iscsit_set_default_node_attribues() argument 45 struct iscsi_node_acl *acl, in iscsit_na_dataout_timeout() argument 70 struct iscsi_node_acl *acl, in iscsit_na_dataout_timeout_retries() argument 90 iscsit_na_get_initiatorname(acl)); in iscsit_na_dataout_timeout_retries() 96 struct iscsi_node_acl *acl, in iscsit_na_nopin_timeout() argument 121 iscsit_na_get_initiatorname(acl)); in iscsit_na_nopin_timeout() 151 struct iscsi_node_acl *acl, in iscsit_na_nopin_response_timeout() argument 177 struct iscsi_node_acl *acl, in iscsit_na_random_datain_pdu_offsets() argument 197 struct iscsi_node_acl *acl, in iscsit_na_random_datain_seq_offsets() argument 217 struct iscsi_node_acl *acl, in iscsit_na_random_r2t_offsets() argument [all …]
|
/linux-6.3-rc2/fs/jffs2/ |
A D | acl.c | 60 struct posix_acl *acl; in jffs2_acl_from_medium() local 82 if (!acl) in jffs2_acl_from_medium() 122 return acl; in jffs2_acl_from_medium() 178 struct posix_acl *acl; in jffs2_get_acl() local 205 acl = NULL; in jffs2_get_acl() 207 acl = ERR_PTR(rc); in jffs2_get_acl() 210 return acl; in jffs2_get_acl() 219 if (acl) { in __jffs2_set_acl() 241 if (acl) { in jffs2_set_acl() 245 &acl); in jffs2_set_acl() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_acl.c | 56 struct prestera_acl *acl; member 151 ruleset->acl = acl; in prestera_acl_ruleset_create() 242 struct prestera_acl *acl = ruleset->acl; in prestera_acl_ruleset_destroy() local 883 acl = kzalloc(sizeof(*acl), GFP_KERNEL); in prestera_acl_init() 884 if (!acl) in prestera_acl_init() 887 acl->sw = sw; in prestera_acl_init() 890 idr_init(&acl->uid); in prestera_acl_init() 902 sw->acl = acl; in prestera_acl_init() 909 kfree(acl); in prestera_acl_init() 915 struct prestera_acl *acl = sw->acl; in prestera_acl_fini() local [all …]
|
/linux-6.3-rc2/fs/jfs/ |
A D | acl.c | 19 struct posix_acl *acl; in jfs_get_acl() local 49 acl = NULL; in jfs_get_acl() 51 acl = ERR_PTR(size); in jfs_get_acl() 56 return acl; in jfs_get_acl() 60 struct posix_acl *acl) in __jfs_set_acl() argument 78 if (acl) { in __jfs_set_acl() 92 set_cached_acl(inode, type, acl); in __jfs_set_acl() 98 struct posix_acl *acl, int type) in jfs_set_acl() argument 132 struct posix_acl *default_acl, *acl; in jfs_init_acl() local 146 if (acl) { in jfs_init_acl() [all …]
|
/linux-6.3-rc2/fs/xfs/ |
A D | xfs_acl.c | 38 struct posix_acl *acl; in xfs_acl_from_disk() local 56 if (!acl) in xfs_acl_from_disk() 60 acl_e = &acl->a_entries[i]; in xfs_acl_from_disk() 90 return acl; in xfs_acl_from_disk() 93 posix_acl_release(acl); in xfs_acl_from_disk() 107 acl_e = &acl->a_entries[i]; in xfs_acl_to_disk() 167 acl = ERR_PTR(error); in xfs_get_acl() 171 return acl; in xfs_get_acl() 190 return acl ? -EACCES : 0; in __xfs_set_acl() 198 if (acl) { in __xfs_set_acl() [all …]
|
/linux-6.3-rc2/fs/ksmbd/ |
A D | ndr.c | 343 struct xattr_smb_acl *acl, in ndr_encode_posix_acl() argument 357 if (acl) { in ndr_encode_posix_acl() 389 if (acl) { in ndr_encode_posix_acl() 433 ret = ndr_write_bytes(n, acl->desc, acl->desc_len); in ndr_encode_v4_ntacl() 446 ret = ndr_write_bytes(n, acl->sd_buf, acl->sd_size); in ndr_encode_v4_ntacl() 459 if (acl->version != 4) { in ndr_decode_v4_ntacl() 467 if (acl->version != version2) { in ndr_decode_v4_ntacl() 469 acl->version, version2); in ndr_decode_v4_ntacl() 508 acl->sd_buf = kzalloc(acl->sd_size, GFP_KERNEL); in ndr_decode_v4_ntacl() 509 if (!acl->sd_buf) in ndr_decode_v4_ntacl() [all …]
|
/linux-6.3-rc2/fs/gfs2/ |
A D | acl.c | 43 struct posix_acl *acl; in __gfs2_get_acl() local 57 return acl; in __gfs2_get_acl() 65 struct posix_acl *acl; in gfs2_get_acl() local 77 acl = __gfs2_get_acl(inode, type); in gfs2_get_acl() 80 return acl; in gfs2_get_acl() 90 if (acl) { in __gfs2_set_acl() 106 set_cached_acl(inode, type, acl); in __gfs2_set_acl() 113 struct posix_acl *acl, int type) in gfs2_set_acl() argument 122 if (acl && acl->a_count > GFS2_ACL_MAX_ENTRIES(GFS2_SB(inode))) in gfs2_set_acl() 137 if (type == ACL_TYPE_ACCESS && acl) { in gfs2_set_acl() [all …]
|
/linux-6.3-rc2/fs/btrfs/ |
A D | acl.c | 24 struct posix_acl *acl; in btrfs_get_acl() local 50 acl = NULL; in btrfs_get_acl() 52 acl = ERR_PTR(size); in btrfs_get_acl() 55 return acl; in btrfs_get_acl() 59 struct posix_acl *acl, int type) in __btrfs_set_acl() argument 71 return acl ? -EINVAL : 0; in __btrfs_set_acl() 78 if (acl) { in __btrfs_set_acl() 108 set_cached_acl(inode, type, acl); in __btrfs_set_acl() 114 struct posix_acl *acl, int type) in btrfs_set_acl() argument 120 if (type == ACL_TYPE_ACCESS && acl) { in btrfs_set_acl() [all …]
|
/linux-6.3-rc2/fs/orangefs/ |
A D | acl.c | 15 struct posix_acl *acl; in orangefs_get_acl() local 55 acl = NULL; in orangefs_get_acl() 60 acl = ERR_PTR(ret); in orangefs_get_acl() 64 return acl; in orangefs_get_acl() 92 if (acl) { in __orangefs_set_acl() 93 size = posix_acl_xattr_size(acl->a_count); in __orangefs_set_acl() 105 __func__, name, value, size, acl); in __orangefs_set_acl() 117 set_cached_acl(inode, type, acl); in __orangefs_set_acl() 122 struct posix_acl *acl, int type) in orangefs_set_acl() argument 131 if (type == ACL_TYPE_ACCESS && acl) { in orangefs_set_acl() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | posix_acl.h | 36 #define FOREACH_ACL_ENTRY(pa, acl, pe) \ argument 37 for(pa=(acl)->a_entries, pe=pa+(acl)->a_count; pa<pe; pa++) 44 posix_acl_dup(struct posix_acl *acl) in posix_acl_dup() argument 46 if (acl) in posix_acl_dup() 47 refcount_inc(&acl->a_refcount); in posix_acl_dup() 48 return acl; in posix_acl_dup() 55 posix_acl_release(struct posix_acl *acl) in posix_acl_release() argument 57 if (acl && refcount_dec_and_test(&acl->a_refcount)) in posix_acl_release() 58 kfree_rcu(acl, a_rcu); in posix_acl_release() 129 *default_acl = *acl = NULL; in posix_acl_create() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_acl.c | 40 return acl->afk; in mlxsw_sp_acl_afk() 45 return &acl->tcam; in mlxsw_sp_acl_to_tcam() 170 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_create() local 214 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_destroy() local 257 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_lookup() local 276 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_get() local 1044 if (!acl) in mlxsw_sp_acl_init() 1046 mlxsw_sp->acl = acl; in mlxsw_sp_acl_init() 1089 kfree(acl); in mlxsw_sp_acl_init() 1095 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_fini() local [all …]
|
/linux-6.3-rc2/fs/nfs/ |
A D | nfs3acl.c | 34 posix_acl_dup(acl); in nfs3_complete_get_acl() 36 posix_acl_release(acl); in nfs3_complete_get_acl() 171 .acl_access = acl, in __nfs3_proc_setacls() 190 if (acl != NULL && acl->a_count > NFS_ACL_MAX_ENTRIES) in __nfs3_proc_setacls() 278 dfacl = acl; in nfs3_set_acl() 279 acl = alloc; in nfs3_set_acl() 284 if (acl == NULL) { in nfs3_set_acl() 288 acl = alloc; in nfs3_set_acl() 292 if (acl != orig) in nfs3_set_acl() 313 struct posix_acl *acl; in nfs3_list_one_acl() local [all …]
|
/linux-6.3-rc2/fs/afs/ |
A D | xattr.c | 24 kfree(op->acl); in afs_acl_put() 55 acl = op->acl; in afs_xattr_get_acl() 56 op->acl = NULL; in afs_xattr_get_acl() 60 ret = acl->size; in afs_xattr_get_acl() 63 memcpy(buffer, acl->data, acl->size); in afs_xattr_get_acl() 69 kfree(acl); in afs_xattr_get_acl() 76 struct afs_acl *acl; in afs_make_acl() local 78 acl = kmalloc(sizeof(*acl) + size, GFP_KERNEL); in afs_make_acl() 79 if (!acl) { in afs_make_acl() 84 acl->size = size; in afs_make_acl() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
A D | helper.c | 14 struct mlx5_flow_table *acl; in esw_acl_table_create() local 40 if (IS_ERR(acl)) { in esw_acl_table_create() 41 err = PTR_ERR(acl); in esw_acl_table_create() 45 return acl; in esw_acl_table_create() 72 mlx5_add_flow_rules(vport->egress.acl, spec, in esw_egress_acl_vlan_create() 140 if (IS_ERR_OR_NULL(vport->egress.acl)) in esw_acl_egress_table_destroy() 143 mlx5_destroy_flow_table(vport->egress.acl); in esw_acl_egress_table_destroy() 144 vport->egress.acl = NULL; in esw_acl_egress_table_destroy() 149 if (!vport->ingress.acl) in esw_acl_ingress_table_destroy() 152 mlx5_destroy_flow_table(vport->ingress.acl); in esw_acl_ingress_table_destroy() [all …]
|
/linux-6.3-rc2/fs/fuse/ |
A D | acl.c | 21 struct posix_acl *acl; in __fuse_get_acl() local 44 acl = posix_acl_from_xattr(fc->user_ns, value, size); in __fuse_get_acl() 47 acl = NULL; in __fuse_get_acl() 49 acl = ERR_PTR(-E2BIG); in __fuse_get_acl() 51 acl = ERR_PTR(size); in __fuse_get_acl() 54 return acl; in __fuse_get_acl() 98 struct posix_acl *acl, int type) in fuse_set_acl() argument 118 if (acl) { in fuse_set_acl() 127 size_t size = posix_acl_xattr_size(acl->a_count); in fuse_set_acl() 137 ret = posix_acl_to_xattr(fc->user_ns, acl, value, size); in fuse_set_acl()
|