]> git.baikalelectronics.ru Git - kernel.git/commit
linux/audit.h: move ptrace.h include to kernel header
authorMike Frysinger <vapier@gentoo.org>
Fri, 11 Jan 2013 22:32:13 +0000 (14:32 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 Jan 2013 22:54:56 +0000 (14:54 -0800)
commiteef37d9ffd1c3fd3a93fe47e6aef4eb4ea325f0c
tree3809e683c054ba7e285db493aad31132e7ea9681
parent27a5a2bdc5f4b7802ae206110fd1162ad79bdb29
linux/audit.h: move ptrace.h include to kernel header

While the kernel internals want pt_regs (and so it includes
linux/ptrace.h), the user version of audit.h does not need it.  So move
the include out of the uapi version.

This avoids issues where people want the audit defines and userland
ptrace api.  Including both the kernel ptrace and the userland ptrace
headers can easily lead to failure.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Cc: Eric Paris <eparis@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/audit.h
include/uapi/linux/audit.h