/linux-3.4.99/fs/btrfs/ |
D | acl.c | 36 struct posix_acl *acl; in btrfs_get_acl() local 41 acl = get_cached_acl(inode, type); in btrfs_get_acl() 42 if (acl != ACL_NOT_CACHED) in btrfs_get_acl() 43 return acl; in btrfs_get_acl() 64 acl = posix_acl_from_xattr(value, size); in btrfs_get_acl() 67 acl = NULL; in btrfs_get_acl() 69 acl = ERR_PTR(-EIO); in btrfs_get_acl() 73 if (!IS_ERR(acl)) in btrfs_get_acl() 74 set_cached_acl(inode, type, acl); in btrfs_get_acl() 76 return acl; in btrfs_get_acl() [all …]
|
/linux-3.4.99/fs/jffs2/ |
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() 97 acl->a_entries[i].e_id = ACL_UNDEFINED_ID; in jffs2_acl_from_medium() 105 acl->a_entries[i].e_id = je32_to_cpu(entry->e_id); in jffs2_acl_from_medium() 114 return acl; in jffs2_acl_from_medium() 116 posix_acl_release(acl); in jffs2_acl_from_medium() [all …]
|
/linux-3.4.99/fs/ext2/ |
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() 56 acl->a_entries[n].e_id = ACL_UNDEFINED_ID; in ext2_acl_from_disk() 64 acl->a_entries[n].e_id = in ext2_acl_from_disk() 74 return acl; in ext2_acl_from_disk() 77 posix_acl_release(acl); in ext2_acl_from_disk() [all …]
|
/linux-3.4.99/fs/reiserfs/ |
D | xattr_acl.c | 16 struct posix_acl *acl); 23 struct posix_acl *acl; in posix_acl_set() local 33 acl = posix_acl_from_xattr(value, size); in posix_acl_set() 34 if (IS_ERR(acl)) { in posix_acl_set() 35 return PTR_ERR(acl); in posix_acl_set() 36 } else if (acl) { in posix_acl_set() 37 error = posix_acl_valid(acl); in posix_acl_set() 42 acl = NULL; in posix_acl_set() 53 error = reiserfs_set_acl(&th, inode, type, acl); in posix_acl_set() 61 posix_acl_release(acl); in posix_acl_set() [all …]
|
/linux-3.4.99/fs/ext4/ |
D | acl.c | 25 struct posix_acl *acl; in ext4_acl_from_disk() local 40 acl = posix_acl_alloc(count, GFP_NOFS); in ext4_acl_from_disk() 41 if (!acl) in ext4_acl_from_disk() 48 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in ext4_acl_from_disk() 49 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in ext4_acl_from_disk() 51 switch (acl->a_entries[n].e_tag) { in ext4_acl_from_disk() 58 acl->a_entries[n].e_id = ACL_UNDEFINED_ID; in ext4_acl_from_disk() 66 acl->a_entries[n].e_id = in ext4_acl_from_disk() 76 return acl; in ext4_acl_from_disk() 79 posix_acl_release(acl); in ext4_acl_from_disk() [all …]
|
/linux-3.4.99/fs/ext3/ |
D | acl.c | 19 struct posix_acl *acl; in ext3_acl_from_disk() local 34 acl = posix_acl_alloc(count, GFP_NOFS); in ext3_acl_from_disk() 35 if (!acl) in ext3_acl_from_disk() 42 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in ext3_acl_from_disk() 43 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in ext3_acl_from_disk() 44 switch(acl->a_entries[n].e_tag) { in ext3_acl_from_disk() 51 acl->a_entries[n].e_id = ACL_UNDEFINED_ID; in ext3_acl_from_disk() 59 acl->a_entries[n].e_id = in ext3_acl_from_disk() 69 return acl; in ext3_acl_from_disk() 72 posix_acl_release(acl); in ext3_acl_from_disk() [all …]
|
/linux-3.4.99/fs/xfs/ |
D | xfs_acl.c | 40 struct posix_acl *acl; in xfs_acl_from_disk() local 48 acl = posix_acl_alloc(count, GFP_KERNEL); in xfs_acl_from_disk() 49 if (!acl) in xfs_acl_from_disk() 53 acl_e = &acl->a_entries[i]; in xfs_acl_from_disk() 80 return acl; in xfs_acl_from_disk() 83 posix_acl_release(acl); in xfs_acl_from_disk() 88 xfs_acl_to_disk(struct xfs_acl *aclp, const struct posix_acl *acl) in xfs_acl_to_disk() argument 94 aclp->acl_cnt = cpu_to_be32(acl->a_count); in xfs_acl_to_disk() 95 for (i = 0; i < acl->a_count; i++) { in xfs_acl_to_disk() 97 acl_e = &acl->a_entries[i]; in xfs_acl_to_disk() [all …]
|
/linux-3.4.99/fs/gfs2/ |
D | acl.c | 44 struct posix_acl *acl; in gfs2_get_acl() local 52 acl = get_cached_acl(&ip->i_inode, type); in gfs2_get_acl() 53 if (acl != ACL_NOT_CACHED) in gfs2_get_acl() 54 return acl; in gfs2_get_acl() 66 acl = posix_acl_from_xattr(data, len); in gfs2_get_acl() 68 return acl; in gfs2_get_acl() 87 static int gfs2_acl_set(struct inode *inode, int type, struct posix_acl *acl) in gfs2_acl_set() argument 95 len = posix_acl_to_xattr(acl, NULL, 0); in gfs2_acl_set() 101 error = posix_acl_to_xattr(acl, data, len); in gfs2_acl_set() 106 set_cached_acl(inode, type, acl); in gfs2_acl_set() [all …]
|
/linux-3.4.99/fs/ |
D | generic_acl.c | 21 struct posix_acl *acl; in generic_acl_list() local 25 acl = get_cached_acl(dentry->d_inode, type); in generic_acl_list() 26 if (!acl) in generic_acl_list() 28 posix_acl_release(acl); in generic_acl_list() 50 struct posix_acl *acl; in generic_acl_get() local 56 acl = get_cached_acl(dentry->d_inode, type); in generic_acl_get() 57 if (!acl) in generic_acl_get() 59 error = posix_acl_to_xattr(acl, buffer, size); in generic_acl_get() 60 posix_acl_release(acl); in generic_acl_get() 70 struct posix_acl *acl = NULL; in generic_acl_set() local [all …]
|
D | posix_acl.c | 35 posix_acl_init(struct posix_acl *acl, int count) in posix_acl_init() argument 37 atomic_set(&acl->a_refcount, 1); in posix_acl_init() 38 acl->a_count = count; in posix_acl_init() 49 struct posix_acl *acl = kmalloc(size, flags); in posix_acl_alloc() local 50 if (acl) in posix_acl_alloc() 51 posix_acl_init(acl, count); in posix_acl_alloc() 52 return acl; in posix_acl_alloc() 59 posix_acl_clone(const struct posix_acl *acl, gfp_t flags) in posix_acl_clone() argument 63 if (acl) { in posix_acl_clone() 64 int size = sizeof(struct posix_acl) + acl->a_count * in posix_acl_clone() [all …]
|
D | xattr_acl.c | 23 struct posix_acl *acl; in posix_acl_from_xattr() local 39 acl = posix_acl_alloc(count, GFP_NOFS); in posix_acl_from_xattr() 40 if (!acl) in posix_acl_from_xattr() 42 acl_e = acl->a_entries; in posix_acl_from_xattr() 65 return acl; in posix_acl_from_xattr() 68 posix_acl_release(acl); in posix_acl_from_xattr() 77 posix_acl_to_xattr(const struct posix_acl *acl, void *buffer, size_t size) in posix_acl_to_xattr() argument 83 real_size = posix_acl_xattr_size(acl->a_count); in posix_acl_to_xattr() 91 for (n=0; n < acl->a_count; n++, ext_entry++) { in posix_acl_to_xattr() 92 ext_entry->e_tag = cpu_to_le16(acl->a_entries[n].e_tag); in posix_acl_to_xattr() [all …]
|
/linux-3.4.99/fs/jfs/ |
D | acl.c | 32 struct posix_acl *acl; in jfs_get_acl() local 37 acl = get_cached_acl(inode, type); in jfs_get_acl() 38 if (acl != ACL_NOT_CACHED) in jfs_get_acl() 39 return acl; in jfs_get_acl() 63 acl = NULL; in jfs_get_acl() 65 acl = ERR_PTR(size); in jfs_get_acl() 67 acl = posix_acl_from_xattr(value, size); in jfs_get_acl() 70 if (!IS_ERR(acl)) in jfs_get_acl() 71 set_cached_acl(inode, type, acl); in jfs_get_acl() 72 return acl; in jfs_get_acl() [all …]
|
/linux-3.4.99/fs/ocfs2/ |
D | acl.c | 46 struct posix_acl *acl; in ocfs2_acl_from_xattr() local 59 acl = posix_acl_alloc(count, GFP_NOFS); in ocfs2_acl_from_xattr() 60 if (!acl) in ocfs2_acl_from_xattr() 66 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in ocfs2_acl_from_xattr() 67 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in ocfs2_acl_from_xattr() 68 acl->a_entries[n].e_id = le32_to_cpu(entry->e_id); 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 84 *size = acl->a_count * sizeof(struct posix_acl_entry); in ocfs2_acl_to_xattr() 91 for (n = 0; n < acl->a_count; n++, entry++) { in ocfs2_acl_to_xattr() [all …]
|
/linux-3.4.99/fs/nfs/ |
D | nfs3acl.c | 16 struct posix_acl *acl; in nfs3_listxattr() local 27 acl = nfs3_proc_getacl(inode, ACL_TYPE_ACCESS); in nfs3_listxattr() 28 if (IS_ERR(acl)) in nfs3_listxattr() 29 return PTR_ERR(acl); in nfs3_listxattr() 30 if (acl) { in nfs3_listxattr() 32 posix_acl_release(acl); in nfs3_listxattr() 36 acl = nfs3_proc_getacl(inode, ACL_TYPE_DEFAULT); in nfs3_listxattr() 37 if (IS_ERR(acl)) in nfs3_listxattr() 38 return PTR_ERR(acl); in nfs3_listxattr() 39 if (acl) { in nfs3_listxattr() [all …]
|
/linux-3.4.99/fs/9p/ |
D | acl.c | 31 struct posix_acl *acl = NULL; in __v9fs_get_acl() local 40 acl = posix_acl_from_xattr(value, size); in __v9fs_get_acl() 41 if (IS_ERR(acl)) in __v9fs_get_acl() 46 acl = NULL; in __v9fs_get_acl() 48 acl = ERR_PTR(-EIO); in __v9fs_get_acl() 52 return acl; in __v9fs_get_acl() 89 struct posix_acl *acl; in v9fs_get_cached_acl() local 94 acl = get_cached_acl(inode, type); in v9fs_get_cached_acl() 95 BUG_ON(acl == ACL_NOT_CACHED); in v9fs_get_cached_acl() 96 return acl; in v9fs_get_cached_acl() [all …]
|
/linux-3.4.99/drivers/target/ |
D | target_core_tpg.c | 96 struct se_node_acl *acl; in __core_tpg_get_initiator_node_acl() local 98 list_for_each_entry(acl, &tpg->acl_node_list, acl_list) { in __core_tpg_get_initiator_node_acl() 99 if (!strcmp(acl->initiatorname, initiatorname)) in __core_tpg_get_initiator_node_acl() 100 return acl; in __core_tpg_get_initiator_node_acl() 114 struct se_node_acl *acl; in core_tpg_get_initiator_node_acl() local 117 acl = __core_tpg_get_initiator_node_acl(tpg, initiatorname); in core_tpg_get_initiator_node_acl() 120 return acl; in core_tpg_get_initiator_node_acl() 128 struct se_node_acl *acl, in core_tpg_add_node_to_devs() argument 173 lun_access, acl, tpg, 1); in core_tpg_add_node_to_devs() 185 struct se_node_acl *acl) in core_set_queue_depth_for_node() argument [all …]
|
/linux-3.4.99/fs/nfs_common/ |
D | nfsacl.c | 39 struct posix_acl *acl; member 46 struct posix_acl acl; member 58 &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_encode() 93 struct posix_acl *acl, int encode_entries, int typeflag) in nfsacl_encode() argument 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() 114 struct posix_acl *acl2 = &aclbuf.acl; in nfsacl_encode() 124 acl2->a_entries[0] = acl->a_entries[0]; /* ACL_USER_OBJ */ in nfsacl_encode() 125 acl2->a_entries[1] = acl->a_entries[1]; /* ACL_GROUP_OBJ */ in nfsacl_encode() [all …]
|
/linux-3.4.99/drivers/target/iscsi/ |
D | iscsi_target_nodeattrib.c | 38 struct iscsi_node_acl *acl) in iscsit_set_default_node_attribues() argument 40 struct iscsi_node_attrib *a = &acl->node_attrib; in iscsit_set_default_node_attribues() 53 struct iscsi_node_acl *acl, in iscsit_na_dataout_timeout() argument 56 struct iscsi_node_attrib *a = &acl->node_attrib; in iscsit_na_dataout_timeout() 72 " %s\n", a->dataout_timeout, iscsit_na_get_initiatorname(acl)); in iscsit_na_dataout_timeout() 78 struct iscsi_node_acl *acl, in iscsit_na_dataout_timeout_retries() argument 81 struct iscsi_node_attrib *a = &acl->node_attrib; in iscsit_na_dataout_timeout_retries() 98 iscsit_na_get_initiatorname(acl)); in iscsit_na_dataout_timeout_retries() 104 struct iscsi_node_acl *acl, in iscsit_na_nopin_timeout() argument 107 struct iscsi_node_attrib *a = &acl->node_attrib; in iscsit_na_nopin_timeout() [all …]
|
/linux-3.4.99/include/linux/ |
D | posix_acl.h | 51 #define FOREACH_ACL_ENTRY(pa, acl, pe) \ argument 52 for(pa=(acl)->a_entries, pe=pa+(acl)->a_count; pa<pe; pa++) 59 posix_acl_dup(struct posix_acl *acl) in posix_acl_dup() argument 61 if (acl) in posix_acl_dup() 62 atomic_inc(&acl->a_refcount); in posix_acl_dup() 63 return acl; in posix_acl_dup() 70 posix_acl_release(struct posix_acl *acl) in posix_acl_release() argument 72 if (acl && atomic_dec_and_test(&acl->a_refcount)) in posix_acl_release() 73 kfree_rcu(acl, a_rcu); in posix_acl_release() 107 struct posix_acl *acl = ACCESS_ONCE(*p); in get_cached_acl() local [all …]
|
/linux-3.4.99/drivers/target/tcm_fc/ |
D | tfc_conf.c | 145 struct ft_node_acl *acl = container_of(se_nacl, in ft_nacl_show_port_name() local 148 return ft_wwn_show(&acl->node_auth.port_name, page); in ft_nacl_show_port_name() 156 struct ft_node_acl *acl = container_of(se_nacl, in ft_nacl_store_port_name() local 159 return ft_wwn_store(&acl->node_auth.port_name, page, count); in ft_nacl_store_port_name() 168 struct ft_node_acl *acl = container_of(se_nacl, in ft_nacl_show_node_name() local 171 return ft_wwn_show(&acl->node_auth.node_name, page); in ft_nacl_show_node_name() 179 struct ft_node_acl *acl = container_of(se_nacl, in ft_nacl_store_node_name() local 182 return ft_wwn_store(&acl->node_auth.node_name, page, count); in ft_nacl_store_node_name() 206 struct ft_node_acl *acl; in ft_add_acl() local 217 acl = kzalloc(sizeof(struct ft_node_acl), GFP_KERNEL); in ft_add_acl() [all …]
|
/linux-3.4.99/security/tomoyo/ |
D | gc.c | 50 head->r.acl == element || &head->w.domain->list == element) in tomoyo_struct_used_by_io_buffer() 152 struct tomoyo_acl_info *acl = in tomoyo_del_acl() local 153 container_of(element, typeof(*acl), list); in tomoyo_del_acl() 154 tomoyo_put_condition(acl->cond); in tomoyo_del_acl() 155 switch (acl->type) { in tomoyo_del_acl() 159 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() 166 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() 174 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() 182 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() 192 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl() [all …]
|
/linux-3.4.99/fs/nfsd/ |
D | nfs4acl.c | 137 struct nfs4_acl *acl; in nfs4_acl_posix_to_nfsv4() local 152 acl = nfs4_acl_new(size); in nfs4_acl_posix_to_nfsv4() 153 if (acl == NULL) in nfs4_acl_posix_to_nfsv4() 157 _posix_to_nfsv4_one(pacl, acl, flags & ~NFS4_ACL_TYPE_DEFAULT); in nfs4_acl_posix_to_nfsv4() 160 _posix_to_nfsv4_one(dpacl, acl, flags | NFS4_ACL_TYPE_DEFAULT); in nfs4_acl_posix_to_nfsv4() 162 return acl; in nfs4_acl_posix_to_nfsv4() 175 summarize_posix_acl(struct posix_acl *acl, struct posix_acl_summary *pas) in summarize_posix_acl() argument 187 pe = acl->a_entries + acl->a_count; in summarize_posix_acl() 189 FOREACH_ACL_ENTRY(pa, acl, pe) { in summarize_posix_acl() 219 _posix_to_nfsv4_one(struct posix_acl *pacl, struct nfs4_acl *acl, in _posix_to_nfsv4_one() argument [all …]
|
D | nfs3acl.c | 33 struct posix_acl *acl; in nfsd3_proc_getacl() local 46 acl = nfsd_get_posix_acl(fh, ACL_TYPE_ACCESS); in nfsd3_proc_getacl() 47 if (IS_ERR(acl)) { in nfsd3_proc_getacl() 48 int err = PTR_ERR(acl); in nfsd3_proc_getacl() 51 acl = NULL; in nfsd3_proc_getacl() 57 if (acl == NULL) { in nfsd3_proc_getacl() 61 acl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL); in nfsd3_proc_getacl() 63 resp->acl_access = acl; in nfsd3_proc_getacl() 69 acl = nfsd_get_posix_acl(fh, ACL_TYPE_DEFAULT); in nfsd3_proc_getacl() 70 if (IS_ERR(acl)) { in nfsd3_proc_getacl() [all …]
|
D | nfs2acl.c | 34 struct posix_acl *acl; in nfsacld_proc_getacl() local 49 acl = nfsd_get_posix_acl(fh, ACL_TYPE_ACCESS); in nfsacld_proc_getacl() 50 if (IS_ERR(acl)) { in nfsacld_proc_getacl() 51 int err = PTR_ERR(acl); in nfsacld_proc_getacl() 54 acl = NULL; in nfsacld_proc_getacl() 60 if (acl == NULL) { in nfsacld_proc_getacl() 64 acl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL); in nfsacld_proc_getacl() 66 resp->acl_access = acl; in nfsacld_proc_getacl() 72 acl = nfsd_get_posix_acl(fh, ACL_TYPE_DEFAULT); in nfsacld_proc_getacl() 73 if (IS_ERR(acl)) { in nfsacld_proc_getacl() [all …]
|
/linux-3.4.99/net/bluetooth/ |
D | hci_conn.c | 436 struct hci_conn *acl = conn->link; in hci_conn_del() local 437 if (acl) { in hci_conn_del() 438 acl->link = NULL; in hci_conn_del() 439 hci_conn_put(acl); in hci_conn_del() 503 struct hci_conn *acl; in hci_connect() local 533 acl = hci_conn_hash_lookup_ba(hdev, ACL_LINK, dst); in hci_connect() 534 if (!acl) { in hci_connect() 535 acl = hci_conn_add(hdev, ACL_LINK, dst); in hci_connect() 536 if (!acl) in hci_connect() 540 hci_conn_hold(acl); in hci_connect() [all …]
|