KEYS: Fix default security_session_to_parent()
David Howells [Mon, 7 Sep 2009 12:24:17 +0000 (13:24 +0100)]
Fix the default security_session_to_parent() in linux/security.h to have a
body.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>

include/linux/security.h

index f4eb32d..10a0925 100644 (file)
@@ -2988,7 +2988,10 @@ static inline int security_key_getsecurity(struct key *key, char **_buffer)
 
 static inline int security_key_session_to_parent(const struct cred *cred,
                                                 const struct cred *parent_cred,
-                                                struct key *key);
+                                                struct key *key)
+{
+       return 0;
+}
 
 #endif
 #endif /* CONFIG_KEYS */