public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* linux-next: security-testing tree build failure
@ 2009-09-07 10:38 Stephen Rothwell
  2009-09-07 12:24 ` [PATCH] KEYS: Fix default security_session_to_parent() David Howells
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2009-09-07 10:38 UTC (permalink / raw)
  To: James Morris; +Cc: linux-next, linux-kernel, David Howells

[-- Attachment #1: Type: text/plain, Size: 699 bytes --]

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.)

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] KEYS: Fix default security_session_to_parent()
  2009-09-07 10:38 linux-next: security-testing tree build failure Stephen Rothwell
@ 2009-09-07 12:24 ` David Howells
  2009-09-07 12:36   ` James Morris
  0 siblings, 1 reply; 3+ messages in thread
From: David Howells @ 2009-09-07 12:24 UTC (permalink / raw)
  To: jmorris, sfr; +Cc: linux-next, linux-kernel, David Howells

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

Signed-off-by: David Howells <dhowells@redhat.com>
---

 include/linux/security.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/include/linux/security.h b/include/linux/security.h
index f4eb32d..10a0925 100644
--- a/include/linux/security.h
+++ b/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,
 						 const struct cred *parent_cred,
-						 struct key *key);
+						 struct key *key)
+{
+	return 0;
+}
 
 #endif
 #endif /* CONFIG_KEYS */

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] KEYS: Fix default security_session_to_parent()
  2009-09-07 12:24 ` [PATCH] KEYS: Fix default security_session_to_parent() David Howells
@ 2009-09-07 12:36   ` James Morris
  0 siblings, 0 replies; 3+ messages in thread
From: James Morris @ 2009-09-07 12:36 UTC (permalink / raw)
  To: David Howells; +Cc: sfr, linux-next, linux-kernel

On Mon, 7 Sep 2009, David Howells wrote:

> Fix the default security_session_to_parent() in linux/security.h to have a
> body.
> 
> Signed-off-by: David Howells <dhowells@redhat.com>

Thanks!


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


-- 
James Morris
<jmorris@namei.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-07 12:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-07 10:38 linux-next: security-testing tree build failure Stephen Rothwell
2009-09-07 12:24 ` [PATCH] KEYS: Fix default security_session_to_parent() David Howells
2009-09-07 12:36   ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox