[PATCH] (3/3) llc - set owner on /proc/net/llc directory

STALE8404d

2 messages, 2 authors, 2003-08-31 · open the first message on its own page

[PATCH] (3/3) llc - set owner on /proc/net/llc directory

From: Stephen Hemminger <hidden>
Date: 2003-08-29 17:51:40

Owner field on /proc/net/llc directory needs to be set,
otherwise badness if some application has directory open while
module being unloaded. 

diff -Nru a/net/llc/llc_proc.c b/net/llc/llc_proc.c
--- a/net/llc/llc_proc.c	Fri Aug 29 09:27:45 2003
+++ b/net/llc/llc_proc.c	Fri Aug 29 09:27:45 2003
@@ -245,6 +245,7 @@
 	llc_proc_dir = proc_mkdir("llc", proc_net);
 	if (!llc_proc_dir)
 		goto out;
+	llc_proc_dir->owner = THIS_MODULE;
 
 	p = create_proc_entry("socket", S_IRUGO, llc_proc_dir);
 	if (!p)

Re: [PATCH] (3/3) llc - set owner on /proc/net/llc directory

From: David S. Miller <hidden>
Date: 2003-08-31 02:05:16

All three LLC patches applied, thanks Stephen.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help