From 1379851360349d6617ad32944a25ee5e2bb74fc2 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 8 Aug 2015 19:12:30 -0400 Subject: Baseline firejail 0.9.28 --- src/firemon/firemon.h | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 src/firemon/firemon.h (limited to 'src/firemon/firemon.h') diff --git a/src/firemon/firemon.h b/src/firemon/firemon.h new file mode 100644 index 000000000..59b1f352c --- /dev/null +++ b/src/firemon/firemon.h @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2014, 2015 netblue30 (netblue30@yahoo.com) + * + * This file is part of firejail project + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +*/ +#ifndef FIREMON_H +#define FIREMON_H +#define _GNU_SOURCE +#include +#include +#include +#include +#include +#include +#include "../include/pid.h" +#include "../include/common.h" + +// clear screen +static inline void firemon_clrscr(void) { + printf("\033[2J\033[1;1H"); + fflush(0); +} + +// firemon.c +extern int arg_nowrap; +int find_child(int id); +void firemon_drop_privs(void); +void firemon_sleep(int st); + + +// procevent.c +void procevent(pid_t pid); + +// usage.c +void usage(void); + +// top.c +void top(void); + +// list.c +void list(void); + +// interface.c +void interface(pid_t pid); + +// arp.c +void arp(pid_t pid); + +// route.c +void route(pid_t pid); + +// caps.c +void caps(pid_t pid); + +// seccomp.c +void seccomp(pid_t pid); + +// cpu.c +void cpu(pid_t pid); + +// cgroup.c +void cgroup(pid_t pid); + +// tree.c +void tree(pid_t pid); + +// netstats.c +void netstats(void); + +#endif -- cgit v1.2.3-54-g00ecf