• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/procd/jail/seccomp-trace.h

  1 /*
  2  * Copyright (C) 2026 Daniel Golle <daniel@makrotopia.org>
  3  *
  4  * This program is free software; you can redistribute it and/or modify
  5  * it under the terms of the GNU Lesser General Public License version 2.1
  6  * as published by the Free Software Foundation
  7  *
  8  * This program is distributed in the hope that it will be useful,
  9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 11  * GNU General Public License for more details.
 12  */
 13 #ifndef _JAIL_SECCOMP_TRACE_H_
 14 #define _JAIL_SECCOMP_TRACE_H_
 15 
 16 #include <sys/types.h>
 17 
 18 enum seccomp_mode {
 19         SECCOMP_MODE_ENFORCE = 0,
 20         SECCOMP_MODE_TRACE,
 21         SECCOMP_MODE_AUDIT,
 22         SECCOMP_MODE_COMPLAIN,
 23 };
 24 
 25 struct seccomp_trace_opts {
 26         enum seccomp_mode mode;
 27         const char *name;
 28         int log_fd;
 29         int main_boundary;
 30         int dedup;
 31 };
 32 
 33 #ifdef SECCOMP_SUPPORT
 34 int seccomp_trace_run(pid_t pid, const struct seccomp_trace_opts *o);
 35 #else
 36 static inline int seccomp_trace_run(pid_t pid, const struct seccomp_trace_opts *o)
 37 {
 38         return -1;
 39 }
 40 #endif
 41 
 42 #endif
 43 

This page was automatically generated by LXR 0.3.1.  •  OpenWrt