Home
last modified time | relevance | path

Searched refs:newnode (Results 1 – 3 of 3) sorted by relevance

/security/selinux/ss/
Dhashtab.c43 struct hashtab_node *prev, *cur, *newnode; in hashtab_insert() local
61 newnode = kzalloc(sizeof(*newnode), GFP_KERNEL); in hashtab_insert()
62 if (!newnode) in hashtab_insert()
64 newnode->key = key; in hashtab_insert()
65 newnode->datum = datum; in hashtab_insert()
67 newnode->next = prev->next; in hashtab_insert()
68 prev->next = newnode; in hashtab_insert()
70 newnode->next = h->htable[hvalue]; in hashtab_insert()
71 h->htable[hvalue] = newnode; in hashtab_insert()
Dsidtab.c37 struct sidtab_node *prev, *cur, *newnode; in sidtab_insert() local
53 newnode = kmalloc(sizeof(*newnode), GFP_ATOMIC); in sidtab_insert()
54 if (!newnode) in sidtab_insert()
57 newnode->sid = sid; in sidtab_insert()
58 if (context_cpy(&newnode->context, context)) { in sidtab_insert()
59 kfree(newnode); in sidtab_insert()
64 newnode->next = prev->next; in sidtab_insert()
66 prev->next = newnode; in sidtab_insert()
68 newnode->next = s->htable[hvalue]; in sidtab_insert()
70 s->htable[hvalue] = newnode; in sidtab_insert()
Davtab.c73 struct avtab_node *newnode; in avtab_insert_node() local
75 newnode = kmem_cache_zalloc(avtab_node_cachep, GFP_KERNEL); in avtab_insert_node()
76 if (newnode == NULL) in avtab_insert_node()
78 newnode->key = *key; in avtab_insert_node()
83 kmem_cache_free(avtab_node_cachep, newnode); in avtab_insert_node()
87 newnode->datum.u.xperms = xperms; in avtab_insert_node()
89 newnode->datum.u.data = datum->u.data; in avtab_insert_node()
93 newnode->next = prev->next; in avtab_insert_node()
94 prev->next = newnode; in avtab_insert_node()
96 newnode->next = flex_array_get_ptr(h->htable, hvalue); in avtab_insert_node()
[all …]