[RFC PATCH] audit-testsuite: improve our chances of losing records in lost_reset

2018-12-13 Thread Paul Moore
From: Paul Moore If the point of the lost_reset test is to flood the system with audit records, why are we restricting ourselves with a filter? Let's log everything. Signed-off-by: Paul Moore --- tests/lost_reset/test |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH -next] audit: remove duplicated include from audit.c

2018-12-13 Thread Paul Moore
On Sun, Dec 9, 2018 at 1:25 AM YueHaibing wrote: > Remove duplicated include. > > Signed-off-by: YueHaibing > --- > kernel/audit.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/kernel/audit.c b/kernel/audit.c > index a0a4544..632d360 100644 > --- a/kernel/audit.c > +++

Re: [RFC PATCH] audit-testsuite: improve our chances of losing records in lost_reset

2018-12-13 Thread Paul Moore
On Thu, Dec 13, 2018 at 6:17 PM Paul Moore wrote: > > From: Paul Moore > > If the point of the lost_reset test is to flood the system with audit > records, why are we restricting ourselves with a filter? Let's log > everything. > > Signed-off-by: Paul Moore > --- > tests/lost_reset/test |

Re: [RFC PATCH] audit-testsuite: restrict the syscall_socketcall test to x86/x86_64

2018-12-13 Thread Paul Moore
On Wed, Dec 12, 2018 at 5:11 PM Paul Moore wrote: > > From: Paul Moore > > Add the ability to filter out tests based on the host system's ABI > as determined by "uname -m". This allows the test to run > successfully on aarch64, and likely many other non-x86 ABIs as well. > > Signed-off-by: Paul

Re: [PATCH -next] audit: remove duplicated include from audit.c

2018-12-13 Thread YueHaibing
On 2018/12/14 7:42, Paul Moore wrote: > On Sun, Dec 9, 2018 at 1:25 AM YueHaibing wrote: >> Remove duplicated include. >> >> Signed-off-by: YueHaibing >> --- >> kernel/audit.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/kernel/audit.c b/kernel/audit.c >> index a0a4544..632d360

Re: [RFC PATCH] audit-testsuite: improve our chances of losing records in lost_reset

2018-12-13 Thread Richard Guy Briggs
On 2018-12-13 18:23, Paul Moore wrote: > On Thu, Dec 13, 2018 at 6:17 PM Paul Moore wrote: > > If the point of the lost_reset test is to flood the system with audit > > records, why are we restricting ourselves with a filter? Let's log > > everything. > > > > tests/lost_reset/test |4 ++-- >

[PATCH v6 00/27] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-12-13 Thread Dmitry V. Levin
PTRACE_GET_SYSCALL_INFO is a generic ptrace API that lets ptracer obtain details of the syscall the tracee is blocked in. There are two reasons for a special syscall-related ptrace request. Firstly, with the current ptrace API there are cases when ptracer cannot retrieve necessary information

[PATCH v6 05/27] arc: define syscall_get_arch()

2018-12-13 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_error(), and syscall_get_return_value() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request.

[PATCH v6 09/27] h8300: define remaining syscall_get_* functions

2018-12-13 Thread Dmitry V. Levin
syscall_get_* functions are required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. This adds remaining 3 syscall_get_* functions as documented in asm-generic/syscall.h: syscall_get_error, syscall_get_return_value, and

[PATCH v6 19/27] riscv: define syscall_get_arch()

2018-12-13 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_error(), and syscall_get_return_value() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request.

[PATCH v6 21/27] xtensa: define syscall_get_* functions

2018-12-13 Thread Dmitry V. Levin
syscall_get_* functions are required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. This adds all 5 syscall_get_* functions on xtensa as documented in asm-generic/syscall.h: syscall_get_nr, syscall_get_arguments,

[PATCH v6 14/27] nios2: define syscall_get_arch()

2018-12-13 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_error(), and syscall_get_return_value() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Cc: Ley

[PATCH v6 24/27] syscall_get_arch: add "struct task_struct *" argument

2018-12-13 Thread Dmitry V. Levin
This argument is required to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request: syscall_get_arch() is going to be called from ptrace_request() along with syscall_get_nr(), syscall_get_arguments(), syscall_get_error(), and syscall_get_return_value() functions with a tracee as their

[PATCH v6 08/27] csky: define syscall_get_arch()

2018-12-13 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Cc: Guo Ren Cc: Paul Moore Cc: Eric Paris Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc:

[PATCH v6 13/27] nds32: define syscall_get_arch()

2018-12-13 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_error(), and syscall_get_return_value() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Cc:

[PATCH v6 06/27] c6x: define syscall_get_arch()

2018-12-13 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_error(), and syscall_get_return_value() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request.

[PATCH v6 23/27] unicore32: add asm/syscall.h

2018-12-13 Thread Dmitry V. Levin
syscall_get_* functions are required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. This introduces asm/syscall.h on unicore32 implementing all 5 syscall_get_* functions as documented in asm-generic/syscall.h: syscall_get_nr,

[PATCH v6 11/27] hexagon: define remaining syscall_get_* functions

2018-12-13 Thread Dmitry V. Levin
syscall_get_* functions are required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. This adds remaining 3 syscall_get_* functions as documented in asm-generic/syscall.h: syscall_get_error, syscall_get_return_value, and