diff options
author | Alexey Dobriyan <adobriyan@sw.ru> | 2008-04-29 04:01:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:16 -0400 |
commit | da91d2ef9fe4fd84cc0a8a729201d38e40ac9f2e (patch) | |
tree | 091f2781c5256eac28665a1512038fe07227f9b0 /security | |
parent | 70a5bb72b55e82fbfbf1e22cae6975fac58a1e2d (diff) |
keys: switch to proc_create()
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security')
-rw-r--r-- | security/keys/proc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/security/keys/proc.c b/security/keys/proc.c index 694126003ed3..e54679b848cf 100644 --- a/security/keys/proc.c +++ b/security/keys/proc.c | |||
@@ -70,19 +70,15 @@ static int __init key_proc_init(void) | |||
70 | struct proc_dir_entry *p; | 70 | struct proc_dir_entry *p; |
71 | 71 | ||
72 | #ifdef CONFIG_KEYS_DEBUG_PROC_KEYS | 72 | #ifdef CONFIG_KEYS_DEBUG_PROC_KEYS |
73 | p = create_proc_entry("keys", 0, NULL); | 73 | p = proc_create("keys", 0, NULL, &proc_keys_fops); |
74 | if (!p) | 74 | if (!p) |
75 | panic("Cannot create /proc/keys\n"); | 75 | panic("Cannot create /proc/keys\n"); |
76 | |||
77 | p->proc_fops = &proc_keys_fops; | ||
78 | #endif | 76 | #endif |
79 | 77 | ||
80 | p = create_proc_entry("key-users", 0, NULL); | 78 | p = proc_create("key-users", 0, NULL, &proc_key_users_fops); |
81 | if (!p) | 79 | if (!p) |
82 | panic("Cannot create /proc/key-users\n"); | 80 | panic("Cannot create /proc/key-users\n"); |
83 | 81 | ||
84 | p->proc_fops = &proc_key_users_fops; | ||
85 | |||
86 | return 0; | 82 | return 0; |
87 | 83 | ||
88 | } /* end key_proc_init() */ | 84 | } /* end key_proc_init() */ |