[apparmor] [patch] regression tests: define arch specific bits for s390x

Steve Beattie steve at nxnw.org
Thu Jan 21 21:01:36 UTC 2016


On Thu, Jan 21, 2016 at 01:00:39PM -0800, Steve Beattie wrote:
> bug: https://bugs.launchpad.net/bugs/1531325
> 
> This patch defines the arch specific registers struct for s390 for the
> ptrace regression test.
> 
> Signed-off-by: Steve Beattie <steve at nxnw.org>

I forgot to mention this is nominated for trunk, 2.10, and 2.9.

Thanks.

> ---
>  tests/regression/apparmor/ptrace.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> Index: b/tests/regression/apparmor/ptrace.c
> ===================================================================
> --- a/tests/regression/apparmor/ptrace.c
> +++ b/tests/regression/apparmor/ptrace.c
> @@ -47,6 +47,8 @@ int interp_status(int status)
>  #    endif
>  #  elif defined(__arm__) || defined(__powerpc__) || defined(__powerpc64__)
>  #    define ARCH_REGS_STRUCT struct pt_regs
> +#  elif defined(__s390__) || defined(__s390x__)
> +#    define ARCH_REGS_STRUCT struct _user_regs_struct
>  #  else
>  #    error "Need to define ARCH_REGS_STRUCT for this architecture"
>  #  endif

-- 
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20160121/6c33e616/attachment.pgp>


More information about the AppArmor mailing list