lxc  4.0.10
About: LXC are userspace tools for the Linux kernel containers that let users easily create and manage system or application containers.
  Fossies Dox: lxc-4.0.10.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

seccomp.c File Reference
#include <errno.h>
#include <seccomp.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/epoll.h>
#include <sys/mount.h>
#include <sys/utsname.h>
#include "af_unix.h"
#include "commands.h"
#include "config.h"
#include "log.h"
#include "lxccontainer.h"
#include "lxcseccomp.h"
#include "mainloop.h"
#include "memory_utils.h"
#include "utils.h"
Include dependency graph for seccomp.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE   1
 
#define MIPS_ARCH_O32   lxc_seccomp_arch_mips
 
#define MIPS_ARCH_N64   lxc_seccomp_arch_mips64
 
#define SECCOMP_GET_NOTIF_SIZES   3
 

Functions

static void LXC_TRACE (struct lxc_log_locinfo *, const char *,...)
 
static void LXC_DEBUG (struct lxc_log_locinfo *, const char *,...)
 
static void LXC_INFO (struct lxc_log_locinfo *, const char *,...)
 
static void LXC_NOTICE (struct lxc_log_locinfo *, const char *,...)
 
static void LXC_WARN (struct lxc_log_locinfo *, const char *,...)
 
static void LXC_ERROR (struct lxc_log_locinfo *, const char *,...)
 
static void LXC_CRIT (struct lxc_log_locinfo *, const char *,...)
 
static void LXC_ALERT (struct lxc_log_locinfo *, const char *,...)
 
static void LXC_FATAL (struct lxc_log_locinfo *, const char *,...)
 
static int parse_config_v1 (FILE *f, char *line, size_t *line_bufsz, struct lxc_conf *conf)
  More...
 
static int parse_config_v2 (FILE *f, char *line, struct lxc_conf *conf)
  More...
 
static int parse_config (FILE *f, struct lxc_conf *conf)
  More...
 
static bool use_seccomp (const struct lxc_conf *conf)
  More...
 
int lxc_read_seccomp_config (struct lxc_conf *conf)
  More...
 
int lxc_seccomp_load (struct lxc_conf *conf)
  More...
 
void lxc_seccomp_free (struct lxc_seccomp *seccomp)
  More...
 
int seccomp_notify_handler (int fd, uint32_t events, void *data, struct lxc_epoll_descr *descr)
  More...
 
void seccomp_conf_init (struct lxc_conf *conf)
  More...
 
int lxc_seccomp_setup_proxy (struct lxc_seccomp *seccomp, struct lxc_epoll_descr *descr, struct lxc_handler *handler)
  More...
 
int lxc_seccomp_send_notifier_fd (struct lxc_seccomp *seccomp, int socket_fd)
  More...
 
int lxc_seccomp_recv_notifier_fd (struct lxc_seccomp *seccomp, int socket_fd)
  More...
 
int lxc_seccomp_add_notifier (const char *name, const char *lxcpath, struct lxc_seccomp *seccomp)
  More...
 

Variables

struct lxc_log_category lxc_log_category_lxc
 
struct lxc_log_category lxc_log_category_seccomp = { "seccomp", LXC_LOG_LEVEL_NOTSET, NULL, &lxc_log_category_lxc }