Lines Matching refs:xp_node
52 struct avc_xperms_node *xp_node; member
239 struct avc_xperms_node *xp_node) in avc_xperms_decision_lookup() argument
243 list_for_each_entry(xpd_node, &xp_node->xpd_head, xpd_list) { in avc_xperms_decision_lookup()
268 static void avc_xperms_allow_perm(struct avc_xperms_node *xp_node, in avc_xperms_allow_perm() argument
272 security_xperm_set(xp_node->xp.drivers.p, driver); in avc_xperms_allow_perm()
273 xpd = avc_xperms_decision_lookup(driver, xp_node); in avc_xperms_allow_perm()
292 static void avc_xperms_free(struct avc_xperms_node *xp_node) in avc_xperms_free() argument
296 if (!xp_node) in avc_xperms_free()
299 list_for_each_entry_safe(xpd_node, tmp, &xp_node->xpd_head, xpd_list) { in avc_xperms_free()
303 kmem_cache_free(avc_xperms_cachep, xp_node); in avc_xperms_free()
386 node->ae.xp_node->xp.len++; in avc_add_xperms_decision()
391 list_add(&dest_xpd->xpd_list, &node->ae.xp_node->xpd_head); in avc_add_xperms_decision()
397 struct avc_xperms_node *xp_node; in avc_xperms_alloc() local
399 xp_node = kmem_cache_zalloc(avc_xperms_cachep, in avc_xperms_alloc()
401 if (!xp_node) in avc_xperms_alloc()
402 return xp_node; in avc_xperms_alloc()
403 INIT_LIST_HEAD(&xp_node->xpd_head); in avc_xperms_alloc()
404 return xp_node; in avc_xperms_alloc()
431 node->ae.xp_node = dest; in avc_xperms_populate()
488 avc_xperms_free(node->ae.xp_node); in avc_node_free()
502 avc_xperms_free(node->ae.xp_node); in avc_node_kill()
663 struct avc_xperms_node *xp_node) in avc_insert() argument
680 rc = avc_xperms_populate(node, xp_node); in avc_insert()
867 if (orig->ae.xp_node) { in avc_update_node()
868 rc = avc_xperms_populate(node, orig->ae.xp_node); in avc_update_node()
878 if (node->ae.xp_node && (flags & AVC_EXTENDED_PERMS)) in avc_update_node()
879 avc_xperms_allow_perm(node->ae.xp_node, driver, xperm); in avc_update_node()
972 struct avc_xperms_node *xp_node) in avc_compute_av() argument
975 INIT_LIST_HEAD(&xp_node->xpd_head); in avc_compute_av()
976 security_compute_av(ssid, tsid, tclass, avd, &xp_node->xp); in avc_compute_av()
978 return avc_insert(ssid, tsid, tclass, avd, xp_node); in avc_compute_av()
1016 struct avc_xperms_node *xp_node; in avc_has_extended_perms() local
1019 xp_node = &local_xp_node; in avc_has_extended_perms()
1026 node = avc_compute_av(ssid, tsid, tclass, &avd, xp_node); in avc_has_extended_perms()
1029 xp_node = node->ae.xp_node; in avc_has_extended_perms()
1032 if (!xp_node || !xp_node->xp.len) in avc_has_extended_perms()
1039 xpd = avc_xperms_decision_lookup(driver, xp_node); in avc_has_extended_perms()
1045 if (!security_xperm_test(xp_node->xp.drivers.p, driver)) { in avc_has_extended_perms()
1104 struct avc_xperms_node xp_node; in avc_has_perm_noaudit() local
1114 node = avc_compute_av(ssid, tsid, tclass, avd, &xp_node); in avc_has_perm_noaudit()