Home
last modified time | relevance | path

Searched refs:acl (Results 1 – 25 of 115) sorted by relevance

12345

/linux/drivers/target/
H A Dtarget_core_tpg.c44 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/
H A Dposix_acl.c49 struct posix_acl *acl; in get_cached_acl() local
53 acl = rcu_dereference(*p); in get_cached_acl()
54 if (!acl || is_uncached_acl(acl) || in get_cached_acl()
55 refcount_inc_not_zero(&acl->a_refcount)) in get_cached_acl()
61 return acl; in get_cached_acl()
67 struct posix_acl *acl = rcu_dereference(*acl_by_type(inode, type)); in get_cached_acl_rcu() local
69 if (acl == ACL_DONT_CACHE) { in get_cached_acl_rcu()
74 acl = ret; in get_cached_acl_rcu()
77 return acl; in get_cached_acl_rcu()
81 void set_cached_acl(struct inode *inode, int type, struct posix_acl *acl) in set_cached_acl() argument
[all …]
/linux/fs/ocfs2/
H A Dacl.c37 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 Dacl.c50 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 Dacl.c24 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 Dacl.c22 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/jffs2/
H A Dacl.c60 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/target/iscsi/
H A Discsi_target_nodeattrib.c28 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 …]
H A Discsi_target_stat.c590 struct iscsi_node_acl *acl = iscsi_stat_nacl(item); in iscsi_stat_sess_inst_show() local
591 struct se_wwn *wwn = acl->se_node_acl.se_tpg->se_tpg_wwn; in iscsi_stat_sess_inst_show()
600 struct iscsi_node_acl *acl = iscsi_stat_nacl(item); in iscsi_stat_sess_node_show() local
601 struct se_node_acl *se_nacl = &acl->se_node_acl; in iscsi_stat_sess_node_show()
621 struct iscsi_node_acl *acl = iscsi_stat_nacl(item); in iscsi_stat_sess_indx_show() local
622 struct se_node_acl *se_nacl = &acl->se_node_acl; in iscsi_stat_sess_indx_show()
643 struct iscsi_node_acl *acl = iscsi_stat_nacl(item); in iscsi_stat_sess_cmd_pdus_show() local
644 struct se_node_acl *se_nacl = &acl->se_node_acl; in iscsi_stat_sess_cmd_pdus_show()
665 struct iscsi_node_acl *acl = iscsi_stat_nacl(item); in iscsi_stat_sess_rsp_pdus_show() local
666 struct se_node_acl *se_nacl = &acl->se_node_acl; in iscsi_stat_sess_rsp_pdus_show()
[all …]
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_acl.c56 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 Dprestera_acl.h168 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 Dndr.c296 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 …]
H A Dndr.h18 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);
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl.c39 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/nfs/
H A Dnfs3acl.c28 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 Dxattr.c24 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_flex(*acl, data, size); in afs_make_acl()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Dhelper.c14 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 …]
H A Dingress_lgcy.c42 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create()
58 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create()
75 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create()
88 g = mlx5_create_flow_group(vport->ingress.acl, flow_group_in); in esw_acl_ingress_lgcy_groups_create()
184 if (!vport->ingress.acl) { in esw_acl_ingress_lgcy_setup()
185 vport->ingress.acl = esw_acl_table_create(esw, vport, in esw_acl_ingress_lgcy_setup()
188 if (IS_ERR(vport->ingress.acl)) { in esw_acl_ingress_lgcy_setup()
189 err = PTR_ERR(vport->ingress.acl); in esw_acl_ingress_lgcy_setup()
190 vport->ingress.acl = NULL; in esw_acl_ingress_lgcy_setup()
243 vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec, in esw_acl_ingress_lgcy_setup()
[all …]
/linux/security/tomoyo/
H A Dgc.c50 head->r.acl == element || &head->w.domain->list == element) in tomoyo_struct_used_by_io_buffer()
157 struct tomoyo_acl_info *acl = in tomoyo_del_acl()
158 container_of(element, typeof(*acl), list); in tomoyo_del_acl() local
160 tomoyo_put_condition(acl->cond); in tomoyo_del_acl()
161 switch (acl->type) { in tomoyo_del_acl()
165 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl()
172 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl()
180 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl()
188 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl()
198 = container_of(acl, typeo in tomoyo_del_acl()
255 struct tomoyo_acl_info *acl; tomoyo_del_domain() local
508 struct tomoyo_acl_info *acl; tomoyo_collect_acl() local
[all...]
H A Dfile.c259 const struct tomoyo_path_acl *acl = container_of(ptr, typeof(*acl), in tomoyo_check_path_acl()
262 if (acl->perm & (1 << r->param.path.operation)) { in tomoyo_check_path_acl()
265 &acl->name); in tomoyo_check_path_acl()
282 const struct tomoyo_path_number_acl *acl = in tomoyo_check_path_number_acl()
283 container_of(ptr, typeof(*acl), head); in tomoyo_check_path_number_acl()
285 return (acl->perm & (1 << r->param.path_number.operation)) && in tomoyo_check_path_number_acl()
287 &acl->number) &&
289 &acl->name);
303 const struct tomoyo_path2_acl *acl in tomoyo_check_path2_acl()
255 const struct tomoyo_path_acl *acl = container_of(ptr, typeof(*acl), tomoyo_check_path_acl() local
278 const struct tomoyo_path_number_acl *acl = tomoyo_check_path_number_acl() local
299 const struct tomoyo_path2_acl *acl = tomoyo_check_path2_acl() local
319 const struct tomoyo_mkdev_acl *acl = tomoyo_check_mkdev_acl() local
[all...]
/linux/drivers/net/dsa/microchip/
H A Dksz9477_tc_flower.c32 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 Dksz9477_acl.c238 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 Dnfs3acl.c32 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 …]
/linux/fs/9p/
H A Dacl.h16 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/drivers/target/tcm_fc/
H A Dtfc_conf.c128 struct ft_node_acl *acl = container_of(se_nacl, in ft_nacl_port_name_show() local
131 return ft_wwn_show(&acl->node_auth.port_name, page); in ft_nacl_port_name_show()
138 struct ft_node_acl *acl = container_of(se_nacl, in ft_nacl_port_name_store() local
141 return ft_wwn_store(&acl->node_auth.port_name, page, count); in ft_nacl_port_name_store()
148 struct ft_node_acl *acl = container_of(se_nacl, in ft_nacl_node_name_show() local
151 return ft_wwn_show(&acl->node_auth.node_name, page); in ft_nacl_node_name_show()
158 struct ft_node_acl *acl = container_of(se_nacl, in ft_nacl_node_name_store() local
161 return ft_wwn_store(&acl->node_auth.node_name, page, count); in ft_nacl_node_name_store()
205 struct ft_node_acl *acl = in ft_init_nodeacl() local
212 acl->node_auth.port_name = wwpn; in ft_init_nodeacl()

12345