Lines Matching refs:xp_node
49 struct avc_xperms_node *xp_node; member
185 struct avc_xperms_node *xp_node) in avc_xperms_decision_lookup() argument
189 list_for_each_entry(xpd_node, &xp_node->xpd_head, xpd_list) { in avc_xperms_decision_lookup()
214 static void avc_xperms_allow_perm(struct avc_xperms_node *xp_node, in avc_xperms_allow_perm() argument
218 security_xperm_set(xp_node->xp.drivers.p, driver); in avc_xperms_allow_perm()
219 xpd = avc_xperms_decision_lookup(driver, xp_node); in avc_xperms_allow_perm()
238 static void avc_xperms_free(struct avc_xperms_node *xp_node) in avc_xperms_free() argument
242 if (!xp_node) in avc_xperms_free()
245 list_for_each_entry_safe(xpd_node, tmp, &xp_node->xpd_head, xpd_list) { in avc_xperms_free()
249 kmem_cache_free(avc_xperms_cachep, xp_node); in avc_xperms_free()
331 node->ae.xp_node->xp.len++; in avc_add_xperms_decision()
336 list_add(&dest_xpd->xpd_list, &node->ae.xp_node->xpd_head); in avc_add_xperms_decision()
342 struct avc_xperms_node *xp_node; in avc_xperms_alloc() local
344 xp_node = kmem_cache_zalloc(avc_xperms_cachep, GFP_NOWAIT); in avc_xperms_alloc()
345 if (!xp_node) in avc_xperms_alloc()
346 return xp_node; in avc_xperms_alloc()
347 INIT_LIST_HEAD(&xp_node->xpd_head); in avc_xperms_alloc()
348 return xp_node; in avc_xperms_alloc()
375 node->ae.xp_node = dest; in avc_xperms_populate()
433 avc_xperms_free(node->ae.xp_node); in avc_node_free()
447 avc_xperms_free(node->ae.xp_node); in avc_node_kill()
615 struct avc_xperms_node *xp_node) in avc_insert() argument
632 rc = avc_xperms_populate(node, xp_node); in avc_insert()
907 if (orig->ae.xp_node) { in avc_update_node()
908 rc = avc_xperms_populate(node, orig->ae.xp_node); in avc_update_node()
918 if (node->ae.xp_node && (flags & AVC_EXTENDED_PERMS)) in avc_update_node()
919 avc_xperms_allow_perm(node->ae.xp_node, driver, xperm); in avc_update_node()
1014 struct avc_xperms_node *xp_node) in avc_compute_av() argument
1017 INIT_LIST_HEAD(&xp_node->xpd_head); in avc_compute_av()
1018 security_compute_av(state, ssid, tsid, tclass, avd, &xp_node->xp); in avc_compute_av()
1020 return avc_insert(state->avc, ssid, tsid, tclass, avd, xp_node); in avc_compute_av()
1061 struct avc_xperms_node *xp_node; in avc_has_extended_perms() local
1064 xp_node = &local_xp_node; in avc_has_extended_perms()
1072 node = avc_compute_av(state, ssid, tsid, tclass, &avd, xp_node); in avc_has_extended_perms()
1075 xp_node = node->ae.xp_node; in avc_has_extended_perms()
1078 if (!xp_node || !xp_node->xp.len) in avc_has_extended_perms()
1085 xpd = avc_xperms_decision_lookup(driver, xp_node); in avc_has_extended_perms()
1091 if (!security_xperm_test(xp_node->xp.drivers.p, driver)) { in avc_has_extended_perms()
1152 struct avc_xperms_node xp_node; in avc_has_perm_noaudit() local
1163 node = avc_compute_av(state, ssid, tsid, tclass, avd, &xp_node); in avc_has_perm_noaudit()