diff options
author | netblue30 <netblue30@yahoo.com> | 2015-08-08 19:12:30 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-08-08 19:12:30 -0400 |
commit | 1379851360349d6617ad32944a25ee5e2bb74fc2 (patch) | |
tree | f69b48e90708bfa3c2723d5a27ed3e024c827b43 /src/firemon/firemon.h | |
parent | delete files (diff) | |
download | firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.gz firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.zst firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.zip |
Baseline firejail 0.9.28
Diffstat (limited to 'src/firemon/firemon.h')
-rw-r--r-- | src/firemon/firemon.h | 84 |
1 files changed, 84 insertions, 0 deletions
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 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014, 2015 netblue30 (netblue30@yahoo.com) | ||
3 | * | ||
4 | * This file is part of firejail project | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License along | ||
17 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
19 | */ | ||
20 | #ifndef FIREMON_H | ||
21 | #define FIREMON_H | ||
22 | #define _GNU_SOURCE | ||
23 | #include <stdlib.h> | ||
24 | #include <stdio.h> | ||
25 | #include <ctype.h> | ||
26 | #include <string.h> | ||
27 | #include <errno.h> | ||
28 | #include <stdint.h> | ||
29 | #include "../include/pid.h" | ||
30 | #include "../include/common.h" | ||
31 | |||
32 | // clear screen | ||
33 | static inline void firemon_clrscr(void) { | ||
34 | printf("\033[2J\033[1;1H"); | ||
35 | fflush(0); | ||
36 | } | ||
37 | |||
38 | // firemon.c | ||
39 | extern int arg_nowrap; | ||
40 | int find_child(int id); | ||
41 | void firemon_drop_privs(void); | ||
42 | void firemon_sleep(int st); | ||
43 | |||
44 | |||
45 | // procevent.c | ||
46 | void procevent(pid_t pid); | ||
47 | |||
48 | // usage.c | ||
49 | void usage(void); | ||
50 | |||
51 | // top.c | ||
52 | void top(void); | ||
53 | |||
54 | // list.c | ||
55 | void list(void); | ||
56 | |||
57 | // interface.c | ||
58 | void interface(pid_t pid); | ||
59 | |||
60 | // arp.c | ||
61 | void arp(pid_t pid); | ||
62 | |||
63 | // route.c | ||
64 | void route(pid_t pid); | ||
65 | |||
66 | // caps.c | ||
67 | void caps(pid_t pid); | ||
68 | |||
69 | // seccomp.c | ||
70 | void seccomp(pid_t pid); | ||
71 | |||
72 | // cpu.c | ||
73 | void cpu(pid_t pid); | ||
74 | |||
75 | // cgroup.c | ||
76 | void cgroup(pid_t pid); | ||
77 | |||
78 | // tree.c | ||
79 | void tree(pid_t pid); | ||
80 | |||
81 | // netstats.c | ||
82 | void netstats(void); | ||
83 | |||
84 | #endif | ||