| /linux/drivers/target/ |
| H A D | target_core_tpg.c | 44 struct se_node_acl *acl; in __core_tpg_get_initiator_node_acl() local 46 list_for_each_entry(acl, &tpg->acl_node_list, acl_list) { in __core_tpg_get_initiator_node_acl() 47 if (!strcmp(acl->initiatorname, initiatorname)) in __core_tpg_get_initiator_node_acl() 48 return acl; in __core_tpg_get_initiator_node_acl() 62 struct se_node_acl *acl; in core_tpg_get_initiator_node_acl() local 73 acl = __core_tpg_get_initiator_node_acl(tpg, initiatorname); in core_tpg_get_initiator_node_acl() 74 if (acl) { in core_tpg_get_initiator_node_acl() 75 if (!kref_get_unless_zero(&acl->acl_kref)) in core_tpg_get_initiator_node_acl() 76 acl = NULL; in core_tpg_get_initiator_node_acl() 80 return acl; in core_tpg_get_initiator_node_acl() [all …]
|
| /linux/fs/9p/ |
| H A D | acl.c | 25 struct posix_acl *acl = NULL; in v9fs_fid_get_acl() local 39 acl = ERR_PTR(size); in v9fs_fid_get_acl() 41 acl = ERR_PTR(-ENODATA); in v9fs_fid_get_acl() 43 acl = posix_acl_from_xattr(&init_user_ns, value, size); in v9fs_fid_get_acl() 45 return acl; in v9fs_fid_get_acl() 51 struct posix_acl *acl = NULL; in v9fs_acl_get() local 57 acl = v9fs_fid_get_acl(fid, name); in v9fs_acl_get() 59 return acl; in v9fs_acl_get() 65 struct posix_acl *acl = NULL; in __v9fs_get_acl() local 67 acl = v9fs_fid_get_acl(fid, name); in __v9fs_get_acl() [all …]
|
| H A D | acl.h | 16 struct posix_acl *acl, int type); 19 struct posix_acl *dacl, struct posix_acl *acl); 22 void v9fs_put_acl(struct posix_acl *dacl, struct posix_acl *acl); 38 struct posix_acl *acl) in v9fs_set_create_acl() argument 43 struct posix_acl *acl) in v9fs_put_acl() argument
|
| /linux/fs/ocfs2/ |
| H A D | acl.c | 37 struct posix_acl *acl; in ocfs2_acl_from_xattr() local 46 acl = posix_acl_alloc(count, GFP_NOFS); in ocfs2_acl_from_xattr() 47 if (!acl) in ocfs2_acl_from_xattr() 53 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in ocfs2_acl_from_xattr() 54 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in ocfs2_acl_from_xattr() 55 switch(acl->a_entries[n].e_tag) { in ocfs2_acl_from_xattr() 57 acl->a_entries[n].e_uid = in ocfs2_acl_from_xattr() 62 acl->a_entries[n].e_gid = in ocfs2_acl_from_xattr() 72 return acl; in ocfs2_acl_from_xattr() 78 static void *ocfs2_acl_to_xattr(const struct posix_acl *acl, size_t *size) in ocfs2_acl_to_xattr() argument [all …]
|
| /linux/fs/f2fs/ |
| H A D | acl.c | 50 struct posix_acl *acl; in f2fs_acl_from_disk() local 67 acl = posix_acl_alloc(count, GFP_NOFS); in f2fs_acl_from_disk() 68 if (!acl) in f2fs_acl_from_disk() 76 acl->a_entries[i].e_tag = le16_to_cpu(entry->e_tag); in f2fs_acl_from_disk() 77 acl->a_entries[i].e_perm = le16_to_cpu(entry->e_perm); in f2fs_acl_from_disk() 79 switch (acl->a_entries[i].e_tag) { in f2fs_acl_from_disk() 89 acl->a_entries[i].e_uid = in f2fs_acl_from_disk() 96 acl->a_entries[i].e_gid = in f2fs_acl_from_disk() 108 return acl; in f2fs_acl_from_disk() 110 posix_acl_release(acl); in f2fs_acl_from_disk() [all …]
|
| /linux/fs/ext2/ |
| H A D | acl.c | 24 struct posix_acl *acl; in ext2_acl_from_disk() local 39 acl = posix_acl_alloc(count, GFP_KERNEL); in ext2_acl_from_disk() 40 if (!acl) in ext2_acl_from_disk() 47 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() 81 return acl; in ext2_acl_from_disk() 84 posix_acl_release(acl); in ext2_acl_from_disk() [all …]
|
| /linux/fs/ext4/ |
| H A D | acl.c | 22 struct posix_acl *acl; in ext4_acl_from_disk() local 37 acl = posix_acl_alloc(count, GFP_NOFS); in ext4_acl_from_disk() 38 if (!acl) in ext4_acl_from_disk() 45 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() 80 return acl; in ext4_acl_from_disk() 83 posix_acl_release(acl); in ext4_acl_from_disk() [all …]
|
| /linux/fs/ceph/ |
| H A D | acl.c | 21 int type, struct posix_acl *acl) in ceph_set_cached_acl() argument 27 set_cached_acl(inode, type, acl); in ceph_set_cached_acl() 40 struct posix_acl *acl; in ceph_get_acl() local 73 acl = posix_acl_from_xattr(&init_user_ns, value, size); in ceph_get_acl() 75 acl = NULL; in ceph_get_acl() 79 acl = ERR_PTR(-EIO); in ceph_get_acl() 84 if (!IS_ERR(acl)) in ceph_get_acl() 85 ceph_set_cached_acl(inode, type, acl); in ceph_get_acl() 87 return acl; in ceph_get_acl() 91 struct posix_acl *acl, int type) in ceph_set_acl() argument [all …]
|
| /linux/drivers/target/iscsi/ |
| H A D | iscsi_target_nodeattrib.c | 28 struct iscsi_node_acl *acl, in iscsit_set_default_node_attribues() argument 31 struct iscsi_node_attrib *a = &acl->node_attrib; in iscsit_set_default_node_attribues() 45 struct iscsi_node_acl *acl, in iscsit_na_dataout_timeout() argument 48 struct iscsi_node_attrib *a = &acl->node_attrib; in iscsit_na_dataout_timeout() 64 " %s\n", a->dataout_timeout, iscsit_na_get_initiatorname(acl)); in iscsit_na_dataout_timeout() 70 struct iscsi_node_acl *acl, in iscsit_na_dataout_timeout_retries() argument 73 struct iscsi_node_attrib *a = &acl->node_attrib; in iscsit_na_dataout_timeout_retries() 90 iscsit_na_get_initiatorname(acl)); in iscsit_na_dataout_timeout_retries() 96 struct iscsi_node_acl *acl, in iscsit_na_nopin_timeout() argument 99 struct iscsi_node_attrib *a = &acl->node_attrib; in iscsit_na_nopin_timeout() [all …]
|
| /linux/fs/jffs2/ |
| H A D | acl.c | 60 struct posix_acl *acl; in jffs2_acl_from_medium() local 81 acl = posix_acl_alloc(count, GFP_KERNEL); in jffs2_acl_from_medium() 82 if (!acl) in jffs2_acl_from_medium() 89 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() 122 return acl; in jffs2_acl_from_medium() 124 posix_acl_release(acl); in jffs2_acl_from_medium() [all …]
|
| /linux/drivers/net/ethernet/marvell/prestera/ |
| H A D | prestera_acl.c | 56 struct prestera_acl *acl; member 136 prestera_acl_ruleset_create(struct prestera_acl *acl, in prestera_acl_ruleset_create() argument 151 ruleset->acl = acl; in prestera_acl_ruleset_create() 161 err = idr_alloc_u32(&acl->uid, NULL, &uid, U8_MAX, GFP_KERNEL); in prestera_acl_ruleset_create() 172 err = rhashtable_insert_fast(&acl->ruleset_ht, &ruleset->ht_node, in prestera_acl_ruleset_create() 180 idr_remove(&acl->uid, uid); in prestera_acl_ruleset_create() 211 err = prestera_acl_vtcam_id_get(ruleset->acl, in prestera_acl_ruleset_offload() 224 err = prestera_hw_vtcam_iface_bind(ruleset->acl->sw, &iface, in prestera_acl_ruleset_offload() 235 prestera_acl_vtcam_id_put(ruleset->acl, ruleset->vtcam_id); in prestera_acl_ruleset_offload() 242 struct prestera_acl *acl = ruleset->acl; in prestera_acl_ruleset_destroy() local [all …]
|
| H A D | prestera_acl.h | 168 int prestera_acl_rule_get_stats(struct prestera_acl *acl, 172 prestera_acl_rule_entry_find(struct prestera_acl *acl, 174 void prestera_acl_rule_entry_destroy(struct prestera_acl *acl, 177 prestera_acl_rule_entry_create(struct prestera_acl *acl, 181 prestera_acl_ruleset_get(struct prestera_acl *acl, 185 prestera_acl_ruleset_lookup(struct prestera_acl *acl, 204 int prestera_acl_vtcam_id_get(struct prestera_acl *acl, u8 lookup, u8 dir, 206 int prestera_acl_vtcam_id_put(struct prestera_acl *acl, u32 vtcam_id);
|
| /linux/fs/smb/server/ |
| H A D | ndr.c | 296 static int ndr_encode_posix_acl_entry(struct ndr *n, struct xattr_smb_acl *acl) in ndr_encode_posix_acl_entry() argument 300 ret = ndr_write_int32(n, acl->count); in ndr_encode_posix_acl_entry() 305 ret = ndr_write_int32(n, acl->count); in ndr_encode_posix_acl_entry() 313 for (i = 0; i < acl->count; i++) { in ndr_encode_posix_acl_entry() 315 ret = ndr_write_int16(n, acl->entries[i].type); in ndr_encode_posix_acl_entry() 319 ret = ndr_write_int16(n, acl->entries[i].type); in ndr_encode_posix_acl_entry() 323 if (acl->entries[i].type == SMB_ACL_USER) { in ndr_encode_posix_acl_entry() 325 ret = ndr_write_int64(n, acl->entries[i].uid); in ndr_encode_posix_acl_entry() 326 } else if (acl->entries[i].type == SMB_ACL_GROUP) { in ndr_encode_posix_acl_entry() 328 ret = ndr_write_int64(n, acl->entries[i].gid); in ndr_encode_posix_acl_entry() [all …]
|
| /linux/fs/jfs/ |
| H 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() 53 acl = posix_acl_from_xattr(&init_user_ns, value, 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() 79 size = posix_acl_xattr_size(acl->a_count); in __jfs_set_acl() 83 rc = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __jfs_set_acl() 92 set_cached_acl(inode, type, acl); in __jfs_set_acl() [all …]
|
| /linux/fs/gfs2/ |
| H A D | acl.c | 43 struct posix_acl *acl; in __gfs2_get_acl() local 55 acl = posix_acl_from_xattr(&init_user_ns, data, len); in __gfs2_get_acl() 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() 83 int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type) in __gfs2_set_acl() argument 90 if (acl) { in __gfs2_set_acl() 91 len = posix_acl_xattr_size(acl->a_count); in __gfs2_set_acl() 95 error = posix_acl_to_xattr(&init_user_ns, acl, data, len); in __gfs2_set_acl() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_acl.c | 39 struct mlxsw_afk *mlxsw_sp_acl_afk(struct mlxsw_sp_acl *acl) in mlxsw_sp_acl_afk() argument 41 return acl->afk; in mlxsw_sp_acl_afk() 44 struct mlxsw_sp_acl_tcam *mlxsw_sp_acl_to_tcam(struct mlxsw_sp_acl *acl) in mlxsw_sp_acl_to_tcam() argument 46 return &acl->tcam; in mlxsw_sp_acl_to_tcam() 96 return mlxsw_sp->acl->dummy_fid; in mlxsw_sp_acl_dummy_fid() 171 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_create() local 189 err = ops->ruleset_add(mlxsw_sp, &acl->tcam, ruleset->priv, in mlxsw_sp_acl_ruleset_create() 195 err = rhashtable_insert_fast(&acl->ruleset_ht, &ruleset->ht_node, in mlxsw_sp_acl_ruleset_create() 215 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_destroy() local 217 rhashtable_remove_fast(&acl->ruleset_ht, &ruleset->ht_node, in mlxsw_sp_acl_ruleset_destroy() [all …]
|
| /linux/fs/orangefs/ |
| H A D | acl.c | 15 struct posix_acl *acl; in orangefs_get_acl() local 53 acl = posix_acl_from_xattr(&init_user_ns, value, ret); in orangefs_get_acl() 55 acl = NULL; in orangefs_get_acl() 60 acl = ERR_PTR(ret); in orangefs_get_acl() 64 return acl; in orangefs_get_acl() 67 int __orangefs_set_acl(struct inode *inode, struct posix_acl *acl, int type) in __orangefs_set_acl() argument 92 if (acl) { in __orangefs_set_acl() 93 size = posix_acl_xattr_size(acl->a_count); in __orangefs_set_acl() 98 error = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __orangefs_set_acl() 105 __func__, name, value, size, acl); in __orangefs_set_acl() [all …]
|
| /linux/fs/nfs/ |
| H A D | nfs3acl.c | 28 static void nfs3_complete_get_acl(struct posix_acl **p, struct posix_acl *acl) in nfs3_complete_get_acl() argument 33 posix_acl_dup(acl); in nfs3_complete_get_acl() 34 if (cmpxchg(p, sentinel, acl) != sentinel) in nfs3_complete_get_acl() 35 posix_acl_release(acl); in nfs3_complete_get_acl() 161 static int __nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, in __nfs3_proc_setacls() argument 170 .acl_access = acl, in __nfs3_proc_setacls() 179 if (acl == NULL && (!S_ISDIR(inode->i_mode) || dfacl == NULL)) in __nfs3_proc_setacls() 189 if (acl != NULL && acl->a_count > NFS_ACL_MAX_ENTRIES) in __nfs3_proc_setacls() 196 args.len = nfsacl_size(acl, dfacl); in __nfs3_proc_setacls() 198 args.len = nfsacl_size(acl, NULL); in __nfs3_proc_setacls() [all …]
|
| /linux/fs/afs/ |
| H A D | xattr.c | 24 kfree(op->acl); in afs_acl_put() 43 struct afs_acl *acl = NULL; in afs_xattr_get_acl() local 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() 62 if (acl->size <= 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(struct_size(acl, data, size), GFP_KERNEL); in afs_make_acl() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
| H A D | helper.c | 14 struct mlx5_flow_table *acl; in esw_acl_table_create() local 40 acl = mlx5_create_vport_flow_table(root_ns, &ft_attr, vport_num); in esw_acl_table_create() 41 if (IS_ERR(acl)) { in esw_acl_table_create() 42 err = PTR_ERR(acl); in esw_acl_table_create() 46 return acl; in esw_acl_table_create() 73 mlx5_add_flow_rules(vport->egress.acl, spec, in esw_egress_acl_vlan_create() 116 vlan_grp = mlx5_create_flow_group(vport->egress.acl, flow_group_in); in esw_acl_egress_vlan_grp_create() 141 if (IS_ERR_OR_NULL(vport->egress.acl)) in esw_acl_egress_table_destroy() 144 mlx5_destroy_flow_table(vport->egress.acl); in esw_acl_egress_table_destroy() 145 vport->egress.acl = NULL; in esw_acl_egress_table_destroy() [all …]
|
| /linux/security/tomoyo/ |
| H A D | gc.c | 51 head->r.acl == element || &head->w.domain->list == element) in tomoyo_struct_used_by_io_buffer() 158 struct tomoyo_acl_info *acl = in tomoyo_del_acl() local 159 container_of(element, typeof(*acl), list); in tomoyo_del_acl() 161 tomoyo_put_condition(acl->cond); in tomoyo_del_acl() 162 switch (acl->type) { in tomoyo_del_acl() 166 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() 173 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() 181 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() 189 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() 199 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() [all …]
|
| /linux/fs/fuse/ |
| H A D | acl.c | 20 struct posix_acl *acl; in __fuse_get_acl() local 43 acl = posix_acl_from_xattr(fc->user_ns, value, size); in __fuse_get_acl() 46 acl = NULL; in __fuse_get_acl() 48 acl = ERR_PTR(-E2BIG); in __fuse_get_acl() 50 acl = ERR_PTR(size); in __fuse_get_acl() 53 return acl; in __fuse_get_acl() 96 struct posix_acl *acl, int type) in fuse_set_acl() argument 116 if (acl) { in fuse_set_acl() 125 size_t size = posix_acl_xattr_size(acl->a_count); in fuse_set_acl() 135 ret = posix_acl_to_xattr(fc->user_ns, acl, value, size); in fuse_set_acl()
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz9477_tc_flower.c | 32 struct ksz9477_acl_priv *acl = dev->ports[port].acl_priv; in ksz9477_flower_parse_key_l2() local 74 acles = &acl->acles; in ksz9477_flower_parse_key_l2() 163 struct ksz9477_acl_priv *acl = dev->ports[port].acl_priv; in ksz9477_flower_parse_action() local 192 entry = &acl->acles.entries[entry_idx]; in ksz9477_flower_parse_action() 221 struct ksz9477_acl_priv *acl; in ksz9477_cls_flower_add() local 225 acl = dev->ports[port].acl_priv; in ksz9477_cls_flower_add() 227 if (!acl) { in ksz9477_cls_flower_add() 235 action_entry_idx = acl->acles.entries_count; in ksz9477_cls_flower_add() 274 struct ksz9477_acl_priv *acl; in ksz9477_cls_flower_del() local 276 acl = dev->ports[port].acl_priv; in ksz9477_cls_flower_del() [all …]
|
| H A D | ksz9477_acl.c | 238 struct ksz9477_acl_priv *acl = dev->ports[port].acl_priv; in ksz9477_acl_get_cont_entr() local 239 struct ksz9477_acl_entries *acles = &acl->acles; in ksz9477_acl_get_cont_entr() 551 struct ksz9477_acl_priv *acl = dev->ports[port].acl_priv; in ksz9477_acl_move_entries() local 552 struct ksz9477_acl_entries *acles = &acl->acles; in ksz9477_acl_move_entries() 699 struct ksz9477_acl_priv *acl = dev->ports[port].acl_priv; in ksz9477_sort_acl_entr_no_back() local 700 struct ksz9477_acl_entries *acles = &acl->acles; in ksz9477_sort_acl_entr_no_back() 750 struct ksz9477_acl_priv *acl = dev->ports[port].acl_priv; in ksz9477_sort_acl_entries() local 751 struct ksz9477_acl_entries *acles = &acl->acles; in ksz9477_sort_acl_entries() 933 struct ksz9477_acl_priv *acl = dev->ports[port].acl_priv; in ksz9477_acl_write_list() local 934 struct ksz9477_acl_entries *acles = &acl->acles; in ksz9477_acl_write_list() [all …]
|
| /linux/fs/nfsd/ |
| H A D | nfs3acl.c | 32 struct posix_acl *acl; in nfsd3_proc_getacl() local 50 acl = get_inode_acl(inode, ACL_TYPE_ACCESS); in nfsd3_proc_getacl() 51 if (acl == NULL) { in nfsd3_proc_getacl() 53 acl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL); in nfsd3_proc_getacl() 55 if (IS_ERR(acl)) { in nfsd3_proc_getacl() 56 resp->status = nfserrno(PTR_ERR(acl)); in nfsd3_proc_getacl() 59 resp->acl_access = acl; in nfsd3_proc_getacl() 64 acl = get_inode_acl(inode, ACL_TYPE_DEFAULT); in nfsd3_proc_getacl() 65 if (IS_ERR(acl)) { in nfsd3_proc_getacl() 66 resp->status = nfserrno(PTR_ERR(acl)); in nfsd3_proc_getacl() [all …]
|