linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* include/linux/security.h: In function ‘security_ptrace_traceme’: error: ‘parent’ undeclared
@ 2008-08-18 18:43 Vegard Nossum
  2008-08-18 18:51 ` [PATCH] security: fix build breakage Vegard Nossum
  2008-08-19 17:22 ` include/linux/security.h: In function ‘security_ptrace_traceme’: error: ‘parent’ undeclared David Howells
  0 siblings, 2 replies; 3+ messages in thread
From: Vegard Nossum @ 2008-08-18 18:43 UTC (permalink / raw)
  To: David Howells, James Morris; +Cc: Linux Kernel Mailing List

Hi,

Is this known and/or fixed?

commit b09c3e3f1710b554348c98e78fbf4a661918779a:

In file included from arch/x86/kernel/ptrace.c:19:
include/linux/security.h: In function 'security_ptrace_traceme':
include/linux/security.h:1760: error: 'parent' undeclared (first use
in this function)
include/linux/security.h:1760: error: (Each undeclared identifier is
reported only once
include/linux/security.h:1760: error: for each function it appears in.)

Was introduced by:

commit 5cd9c58fbe9ec92b45b27e131719af4f2bd9eb40
Author: David Howells <dhowells@redhat.com>
Date:   Thu Aug 14 11:37:28 2008 +0100

    security: Fix setting of PF_SUPERPRIV by __capable()

+static inline int security_ptrace_traceme(struct task_struct *child)
 {
-       return cap_ptrace(parent, child, mode);
+       return cap_ptrace_traceme(parent);
 }


Vegard

-- 
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
	-- E. W. Dijkstra, EWD1036

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

* [PATCH] security: fix build breakage
  2008-08-18 18:43 include/linux/security.h: In function ‘security_ptrace_traceme’: error: ‘parent’ undeclared Vegard Nossum
@ 2008-08-18 18:51 ` Vegard Nossum
  2008-08-19 17:22 ` include/linux/security.h: In function ‘security_ptrace_traceme’: error: ‘parent’ undeclared David Howells
  1 sibling, 0 replies; 3+ messages in thread
From: Vegard Nossum @ 2008-08-18 18:51 UTC (permalink / raw)
  To: David Howells, James Morris; +Cc: linux-kernel

In case it wasn't fixed already, here it is.. :-)

>From 122c9e0c51d43675a1d02b8a82d7eae8e87f9042 Mon Sep 17 00:00:00 2001
From: Vegard Nossum <vegardno@ben.ifi.uio.no>
Date: Mon, 18 Aug 2008 20:47:03 +0200
Subject: [PATCH] security: fix build breakage

Introduced by:

commit 5cd9c58fbe9ec92b45b27e131719af4f2bd9eb40
Author: David Howells <dhowells@redhat.com>
Date:   Thu Aug 14 11:37:28 2008 +0100

   security: Fix setting of PF_SUPERPRIV by __capable()

Should this commit be re-tested also with LTP with CONFIG_SECURITY=n?

Cc: David Howells <dhowells@redhat.com>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Vegard Nossum <vegardno@ben.ifi.uio.no>
---
 include/linux/security.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/security.h b/include/linux/security.h
index 2ee5ecf..80c4d00 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -1755,7 +1755,7 @@ static inline int security_ptrace_may_access(struct task_struct *child,
 	return cap_ptrace_may_access(child, mode);
 }
 
-static inline int security_ptrace_traceme(struct task_struct *child)
+static inline int security_ptrace_traceme(struct task_struct *parent)
 {
 	return cap_ptrace_traceme(parent);
 }
-- 
1.5.6.4


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

* Re: include/linux/security.h: In function ‘security_ptrace_traceme’: error: ‘parent’ undeclared
  2008-08-18 18:43 include/linux/security.h: In function ‘security_ptrace_traceme’: error: ‘parent’ undeclared Vegard Nossum
  2008-08-18 18:51 ` [PATCH] security: fix build breakage Vegard Nossum
@ 2008-08-19 17:22 ` David Howells
  1 sibling, 0 replies; 3+ messages in thread
From: David Howells @ 2008-08-19 17:22 UTC (permalink / raw)
  To: Vegard Nossum; +Cc: dhowells, James Morris, Linux Kernel Mailing List

Vegard Nossum <vegard.nossum@gmail.com> wrote:

> Is this known and/or fixed?

The fix is upstream now.

David

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

end of thread, other threads:[~2008-08-19 17:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-18 18:43 include/linux/security.h: In function ‘security_ptrace_traceme’: error: ‘parent’ undeclared Vegard Nossum
2008-08-18 18:51 ` [PATCH] security: fix build breakage Vegard Nossum
2008-08-19 17:22 ` include/linux/security.h: In function ‘security_ptrace_traceme’: error: ‘parent’ undeclared David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).