Skip to contentSkip to conversation

linux-next: security-testing tree build failure

PATCH In review Stephen Rothwell 3 participants 3 messages Sep 7, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi ,

Today's linux-next build (sparc64 defconfig) failed like this:

cc1: warnings being treated as errors
include/linux/security.h:3012: error: 'security_key_session_to_parent' declared 'static' but never defined

Caused by commit ee18d64c1f632043a02e6f5ba5e045bb26a5465f ("KEYS: Add a keyctl to install a process's session keyring on its parent [try #6]") which I have reverted for today.

(I also reverted commit 945af7c3289c26c9070d6b1bf3ca759d36643e0b ("KEYS:
security_cred_alloc_blank() should return int under all circumstances") which is a fix for the above commit.)

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
#1 lore raw

PATCH 1/1 KEYS: Fix default security_session_to_parent()

Fix the default security_session_to_parent() in linux/security.h to have a body.

---

 include/linux/security.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
include/linux/security.h +4 -1
index f4eb32d..10a0925 100644
@@ -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 */
maintainer
#2 lore raw

Re: [PATCH] KEYS: Fix default security_session_to_parent()

Quoted 4 lines · David Howells

Fix the default security_session_to_parent() in linux/security.h to have a body.

Thanks!

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next

Signature · 2 lines
James Morris
<[email protected]>