Home
last modified time | relevance | path

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

1234567

/linux/drivers/target/
A Dtarget_core_tpg.c47 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/fs/9p/
A Dacl.c39 acl = NULL; in __v9fs_get_acl()
45 return acl; in __v9fs_get_acl()
89 return acl; in v9fs_get_cached_acl()
119 if (!acl) in v9fs_set_acl()
154 if (acl) { in v9fs_acl_chmod()
193 if (!acl) in v9fs_acl_mode()
196 if (acl) { in v9fs_acl_mode()
203 *pacl = acl; in v9fs_acl_mode()
271 acl = NULL; in v9fs_xattr_set_acl()
275 if (acl) { in v9fs_xattr_set_acl()
[all …]
/linux/fs/
A Dposix_acl.c47 if (!acl || is_uncached_acl(acl) || in get_cached_acl()
54 return acl; in get_cached_acl()
67 acl = ret; in get_cached_acl_rcu()
70 return acl; in get_cached_acl_rcu()
168 return acl; in get_acl()
192 if (acl) in posix_acl_alloc()
194 return acl; in posix_acl_alloc()
206 if (acl) { in posix_acl_clone()
298 if (!acl) in posix_acl_equiv_mode()
338 if (!acl) in posix_acl_from_mode()
[all …]
/linux/fs/nfs_common/
A Dnfsacl.c37 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/fs/reiserfs/
A Dxattr_acl.c27 int size = acl ? posix_acl_xattr_size(acl->a_count) : 0; in reiserfs_set_acl()
71 struct posix_acl *acl; in reiserfs_posix_acl_from_disk() local
87 if (!acl) in reiserfs_posix_acl_from_disk()
127 return acl; in reiserfs_posix_acl_from_disk()
145 acl->a_count * in reiserfs_posix_acl_to_disk()
231 acl = NULL; in reiserfs_get_acl()
239 return acl; in reiserfs_get_acl()
270 if (acl) { in __reiserfs_set_acl()
340 if (acl) { in reiserfs_inherit_default_acl()
343 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()
277 &acl); in ocfs2_iop_set_acl()
317 return acl; in ocfs2_iop_get_acl()
369 if (IS_ERR(acl)) in ocfs2_init_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()
220 *acl = NULL; in f2fs_acl_update_mode()
258 if (acl) { in __f2fs_set_acl()
294 if (acl) { in f2fs_acl_clone()
366 *acl = NULL; in f2fs_acl_create()
393 *acl = clone; in f2fs_acl_create()
[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()
231 &acl); in ext2_set_acl()
[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.c38 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()
106 if (acl) { in ceph_set_acl()
125 if (acl) { in ceph_set_acl()
179 if (acl) { in ceph_pre_init_acls()
185 acl = NULL; in ceph_pre_init_acls()
192 if (acl) in ceph_pre_init_acls()
211 if (acl) { in ceph_pre_init_acls()
[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()
240 if (acl) { in jffs2_set_acl()
244 &acl); in jffs2_set_acl()
[all …]
/linux/drivers/target/iscsi/
A Discsi_target_nodeattrib.c28 struct iscsi_node_acl *acl, in iscsit_set_default_node_attribues() argument
44 struct iscsi_node_acl *acl, in iscsit_na_dataout_timeout() argument
69 struct iscsi_node_acl *acl, in iscsit_na_dataout_timeout_retries() argument
89 iscsit_na_get_initiatorname(acl)); in iscsit_na_dataout_timeout_retries()
95 struct iscsi_node_acl *acl, in iscsit_na_nopin_timeout() argument
120 iscsit_na_get_initiatorname(acl)); in iscsit_na_nopin_timeout()
150 struct iscsi_node_acl *acl, in iscsit_na_nopin_response_timeout() argument
176 struct iscsi_node_acl *acl, in iscsit_na_random_datain_pdu_offsets() argument
196 struct iscsi_node_acl *acl, in iscsit_na_random_datain_seq_offsets() argument
216 struct iscsi_node_acl *acl, in iscsit_na_random_r2t_offsets() argument
[all …]
/linux/fs/btrfs/
A Dacl.c24 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()
72 return acl ? -EINVAL : 0; in __btrfs_set_acl()
79 if (acl) { in __btrfs_set_acl()
109 set_cached_acl(inode, type, acl); in __btrfs_set_acl()
122 &inode->i_mode, &acl); in btrfs_set_acl()
152 if (acl) { in btrfs_init_acl()
156 posix_acl_release(acl); in btrfs_init_acl()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_acl.c40 return acl->afk; in mlxsw_sp_acl_afk()
165 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_create() local
209 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_destroy() local
252 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_lookup() local
271 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_ruleset_get() local
964 if (!acl) in mlxsw_sp_acl_init()
966 mlxsw_sp->acl = acl; in mlxsw_sp_acl_init()
1009 kfree(acl); in mlxsw_sp_acl_init()
1015 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_fini() local
1029 struct mlxsw_sp_acl *acl = mlxsw_sp->acl; in mlxsw_sp_acl_region_rehash_intrvl_get() local
[all …]
/linux/fs/ksmbd/
A Dndr.c343 struct xattr_smb_acl *acl, in ndr_encode_posix_acl() argument
355 if (acl) { in ndr_encode_posix_acl()
385 if (acl) { in ndr_encode_posix_acl()
429 ret = ndr_write_bytes(n, acl->desc, acl->desc_len); in ndr_encode_v4_ntacl()
442 ret = ndr_write_bytes(n, acl->sd_buf, acl->sd_size); in ndr_encode_v4_ntacl()
455 if (acl->version != 4) { in ndr_decode_v4_ntacl()
463 if (acl->version != version2) { in ndr_decode_v4_ntacl()
465 acl->version, version2); in ndr_decode_v4_ntacl()
504 acl->sd_buf = kzalloc(acl->sd_size, GFP_KERNEL); in ndr_decode_v4_ntacl()
505 if (!acl->sd_buf) in ndr_decode_v4_ntacl()
[all …]
/linux/fs/xfs/
A Dxfs_acl.c37 struct posix_acl *acl; in xfs_acl_from_disk() local
55 if (!acl) in xfs_acl_from_disk()
59 acl_e = &acl->a_entries[i]; in xfs_acl_from_disk()
89 return acl; in xfs_acl_from_disk()
92 posix_acl_release(acl); in xfs_acl_from_disk()
106 acl_e = &acl->a_entries[i]; in xfs_acl_to_disk()
166 acl = ERR_PTR(error); in xfs_get_acl()
170 return acl; in xfs_get_acl()
189 return acl ? -EACCES : 0; in __xfs_set_acl()
197 if (acl) { in __xfs_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()
93 if (acl) { in __orangefs_set_acl()
118 set_cached_acl(inode, type, acl); in __orangefs_set_acl()
131 if (type == ACL_TYPE_ACCESS && acl) { in orangefs_set_acl()
140 &iattr.ia_mode, &acl); in orangefs_set_acl()
163 struct posix_acl *default_acl, *acl; in orangefs_init_acl() local
180 if (acl) { in orangefs_init_acl()
[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
131 struct posix_acl *default_acl, *acl; in jfs_init_acl() local
145 if (acl) { in jfs_init_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
121 if (acl && acl->a_count > GFS2_ACL_MAX_ENTRIES(GFS2_SB(inode))) in gfs2_set_acl()
136 if (type == ACL_TYPE_ACCESS && acl) { in gfs2_set_acl()
[all …]
/linux/fs/nfs/
A Dnfs3acl.c34 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()
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()
312 struct posix_acl *acl; in nfs3_list_one_acl() 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()
119 struct posix_acl **default_acl, struct posix_acl **acl) in posix_acl_create() argument
[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(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/fs/fuse/
A Dacl.c20 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()
57 struct posix_acl *acl, int type) in fuse_set_acl() argument
76 if (acl) { in fuse_set_acl()
85 size_t size = posix_acl_xattr_size(acl->a_count); in fuse_set_acl()
95 ret = posix_acl_to_xattr(fc->user_ns, acl, value, size); in fuse_set_acl()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
A Dhelper.c14 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/security/tomoyo/
A Dgc.c158 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()
209 container_of(acl, typeof(*entry), head); in tomoyo_del_acl()
255 struct tomoyo_acl_info *acl; in tomoyo_del_domain() local
264 tomoyo_del_acl(&acl->list); in tomoyo_del_domain()
265 tomoyo_memory_free(acl); in tomoyo_del_domain()
508 struct tomoyo_acl_info *acl; in tomoyo_collect_acl() local
512 if (!acl->is_deleted) in tomoyo_collect_acl()
[all …]

Completed in 38 milliseconds

1234567