2 * Copyright (c) 2015-2018 Dmitry V. Levin <ldv@altlinux.org>
5 * SPDX-License-Identifier: LGPL-2.1-or-later
10 #ifdef HAVE_LINUX_SECCOMP_H
11 # include <linux/seccomp.h>
13 #include "xlat/seccomp_ops.h"
14 #include "xlat/seccomp_filter_flags.h"
18 unsigned int op = tcp->u_arg[0];
19 unsigned int flags = tcp->u_arg[1];
22 printxval(seccomp_ops, op, "SECCOMP_SET_MODE_???");
26 case SECCOMP_GET_ACTION_AVAIL:
27 tprintf("%u, ", flags);
28 if (!umove_or_printaddr(tcp, tcp->u_arg[2], &act)) {
30 printxval(seccomp_ret_action, act, "SECCOMP_RET_???");
35 case SECCOMP_SET_MODE_FILTER:
36 printflags(seccomp_filter_flags, flags,
37 "SECCOMP_FILTER_FLAG_???");
39 decode_seccomp_fprog(tcp, tcp->u_arg[2]);
42 case SECCOMP_SET_MODE_STRICT:
44 tprintf("%u, ", flags);
45 printaddr(tcp->u_arg[2]);