From 1252d26db8cf2eddb5acb8b62b1aba8f903b7827 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 17 Jul 2015 01:14:51 +0000 Subject: [PATCH] seccomp.c: make use of RVAL_DECODED * seccomp.c (sys_seccomp): Update for RVAL_DECODED. --- seccomp.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/seccomp.c b/seccomp.c index 4c176a78..71c90c0d 100644 --- a/seccomp.c +++ b/seccomp.c @@ -225,21 +225,20 @@ decode_seccomp_set_mode_strict(unsigned int flags, unsigned long addr) SYS_FUNC(seccomp) { - if (entering(tcp)) { - unsigned int op = tcp->u_arg[0]; + unsigned int op = tcp->u_arg[0]; - printxval(seccomp_ops, op, "SECCOMP_SET_MODE_???"); - tprints(", "); + printxval(seccomp_ops, op, "SECCOMP_SET_MODE_???"); + tprints(", "); - if (op == SECCOMP_SET_MODE_FILTER) { - printflags(seccomp_filter_flags, tcp->u_arg[1], - "SECCOMP_FILTER_FLAG_???"); - tprints(", "); - print_seccomp_filter(tcp, tcp->u_arg[2]); - } else { - decode_seccomp_set_mode_strict(tcp->u_arg[1], - tcp->u_arg[2]); - } + if (op == SECCOMP_SET_MODE_FILTER) { + printflags(seccomp_filter_flags, tcp->u_arg[1], + "SECCOMP_FILTER_FLAG_???"); + tprints(", "); + print_seccomp_filter(tcp, tcp->u_arg[2]); + } else { + decode_seccomp_set_mode_strict(tcp->u_arg[1], + tcp->u_arg[2]); } - return 0; + + return RVAL_DECODED; } -- 2.40.0