浏览代码

KEYS: Fix default security_session_to_parent()

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>
David Howells 16 年之前
父节点
当前提交
be1d6a5f55
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      include/linux/security.h

+ 4 - 1
include/linux/security.h

@@ -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,
 static inline int security_key_session_to_parent(const struct cred *cred,
 						 const struct cred *parent_cred,
 						 const struct cred *parent_cred,
-						 struct key *key);
+						 struct key *key)
+{
+	return 0;
+}
 
 
 #endif
 #endif
 #endif /* CONFIG_KEYS */
 #endif /* CONFIG_KEYS */