Home
last modified time | relevance | path

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

1234567

/linux/drivers/target/
A Dtarget_core_tpg.c48 return acl; in __core_tpg_get_initiator_node_acl()
74 if (acl) { 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()
178 if (!acl) in target_alloc_node_acl()
202 return acl; in target_alloc_node_acl()
249 if (acl) in core_tpg_check_initiator_node_acl()
256 if (!acl) in core_tpg_check_initiator_node_acl()
279 return acl; in core_tpg_check_initiator_node_acl()
297 if (acl) { in core_tpg_add_initiator_node_acl()
[all …]
/linux/fs/9p/
A Dacl.c44 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/fs/
A Dposix_acl.c54 if (!acl || is_uncached_acl(acl) || in get_cached_acl()
61 return acl; in get_cached_acl()
74 acl = ret; in get_cached_acl_rcu()
77 return acl; in get_cached_acl_rcu()
179 return acl; in __get_acl()
208 if (acl) in posix_acl_alloc()
222 if (acl) { in posix_acl_clone()
315 if (!acl) in posix_acl_equiv_mode()
355 if (!acl) in posix_acl_from_mode()
790 if (!acl) in posix_acl_from_xattr()
[all …]
/linux/fs/nfs_common/
A Dnfsacl.c38 struct posix_acl *acl; member
45 struct posix_acl acl; member
96 int entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfsacl_encode()
103 .acl = acl, in nfsacl_encode()
114 if (encode_entries && acl && acl->a_count == 3) { in nfsacl_encode()
158 u32 entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfs_stream_encode_acl()
165 .acl = acl, in nfs_stream_encode_acl()
179 if (encode_entries && acl && acl->a_count == 3) { in nfs_stream_encode_acl()
296 if (!acl) in posix_acl_from_nfsacl()
299 sort(acl->a_entries, acl->a_count, sizeof(struct posix_acl_entry), in posix_acl_from_nfsacl()
[all …]
/linux/fs/reiserfs/
A Dxattr_acl.c27 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/fs/ocfs2/
A Dacl.c36 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/fs/ext2/
A Dacl.c24 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/fs/f2fs/
A Dacl.c49 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()
260 if (acl) { in __f2fs_set_acl()
298 if (acl) { in f2fs_acl_clone()
370 *acl = NULL; in f2fs_acl_create()
397 *acl = clone; in f2fs_acl_create()
[all …]
/linux/fs/ext4/
A Dacl.c22 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/fs/ceph/
A Dacl.c40 struct posix_acl *acl; in ceph_get_acl() local
75 acl = NULL; in ceph_get_acl()
84 if (!IS_ERR(acl)) in ceph_get_acl()
87 return acl; in ceph_get_acl()
109 if (acl) { in ceph_set_acl()
128 if (acl) { in ceph_set_acl()
182 if (acl) { in ceph_pre_init_acls()
188 acl = NULL; in ceph_pre_init_acls()
195 if (acl) in ceph_pre_init_acls()
214 if (acl) { in ceph_pre_init_acls()
[all …]
/linux/drivers/target/iscsi/
A Discsi_target_nodeattrib.c28 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/fs/jffs2/
A Dacl.c60 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/drivers/net/ethernet/marvell/prestera/
A Dprestera_acl.c56 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/fs/bcachefs/
A Dacl.c141 if (!acl) in bch2_acl_from_disk()
144 kfree(acl); in bch2_acl_from_disk()
179 BUG_ON(out != acl->a_entries + acl->a_count); in bch2_acl_from_disk()
181 return acl; in bch2_acl_from_disk()
189 acl_e < acl->a_entries + acl->a_count; \
313 return acl; in bch2_get_acl()
327 if (acl) { in bch2_set_acl_trans()
362 acl = _acl; in bch2_set_acl()
441 *new_acl = acl; in bch2_acl_chmod()
442 acl = NULL; in bch2_acl_chmod()
[all …]
/linux/fs/jfs/
A Dacl.c19 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/fs/smb/server/
A Dndr.c343 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/fs/xfs/
A Dxfs_acl.c38 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/fs/gfs2/
A Dacl.c43 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/fs/btrfs/
A Dacl.c23 struct posix_acl *acl; in btrfs_get_acl() local
49 acl = NULL; in btrfs_get_acl()
51 acl = ERR_PTR(size); in btrfs_get_acl()
54 return acl; in btrfs_get_acl()
58 struct posix_acl *acl, int type) in __btrfs_set_acl() argument
70 return acl ? -EINVAL : 0; in __btrfs_set_acl()
77 if (acl) { in __btrfs_set_acl()
107 set_cached_acl(inode, type, acl); in __btrfs_set_acl()
113 struct posix_acl *acl, int type) in btrfs_set_acl() argument
119 if (type == ACL_TYPE_ACCESS && acl) { in btrfs_set_acl()
[all …]
/linux/fs/orangefs/
A Dacl.c15 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/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_acl.c41 return acl->afk; in mlxsw_sp_acl_afk()
46 return &acl->tcam; in mlxsw_sp_acl_to_tcam()
171 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_create() local
215 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_destroy() local
258 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_lookup() local
277 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_get() local
1061 if (!acl) in mlxsw_sp_acl_init()
1063 mlxsw_sp->acl = acl; in mlxsw_sp_acl_init()
1106 kfree(acl); in mlxsw_sp_acl_init()
1112 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_fini() local
[all …]
/linux/include/linux/
A Dposix_acl.h36 #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()
131 *default_acl = *acl = NULL; in posix_acl_create()
[all …]
/linux/fs/nfs/
A Dnfs3acl.c33 posix_acl_dup(acl); in nfs3_complete_get_acl()
35 posix_acl_release(acl); in nfs3_complete_get_acl()
170 .acl_access = acl, in __nfs3_proc_setacls()
189 if (acl != NULL && acl->a_count > NFS_ACL_MAX_ENTRIES) in __nfs3_proc_setacls()
277 dfacl = acl; in nfs3_set_acl()
278 acl = alloc; in nfs3_set_acl()
283 if (acl == NULL) { in nfs3_set_acl()
287 acl = alloc; in nfs3_set_acl()
291 if (acl != orig) in nfs3_set_acl()
306 struct posix_acl *acl; in nfs3_list_one_acl() local
[all …]
/linux/fs/afs/
A Dxattr.c24 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(struct_size(acl, data, size), GFP_KERNEL); in afs_make_acl()
79 if (!acl) { in afs_make_acl()
84 acl->size = size; in afs_make_acl()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
A Dhelper.c14 struct mlx5_flow_table *acl; in esw_acl_table_create() local
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()
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()
150 if (!vport->ingress.acl) in esw_acl_ingress_table_destroy()
153 mlx5_destroy_flow_table(vport->ingress.acl); in esw_acl_ingress_table_destroy()
[all …]

Completed in 58 milliseconds

1234567