Thread (4 messages) 4 messages, 1 author, 2019-04-24

Re: [PATCH 10/11] keys: Network namespace domain tag

From: David Howells <dhowells@redhat.com>
Date: 2019-04-24 21:54:48
Also in: keyrings, linux-cifs, linux-fsdevel, linux-nfs, linux-security-module, lkml

David Howells [off-list ref] wrote:
quoted hunk ↗ jump to hunk
@@ -385,10 +392,20 @@ static struct net *net_alloc(void)
 	if (!net)
 		goto out_free;
 
+#ifdef CONFIG_KEYS
+	net->key_domain = kzalloc(sizeof(struct key_tag), GFP_KERNEL);
+	if (!net->key_domain)
+		goto out_free_2;
+#endif
Initialisation of net->key_domain->usage to 1 is needed here.  I've fixed that
and repushed the patches to the branch.

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help