aboutsummaryrefslogtreecommitdiffstats
path: root/src/faudit/faudit.h
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-07-01 19:19:59 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-07-01 19:19:59 -0400
commitd954df5d3319924ff1a83e3e301f70825691b4f3 (patch)
tree81e009858a14a0ae9f2f6778a3f6f95ac6a85821 /src/faudit/faudit.h
parentaudit compile and install (diff)
downloadfirejail-d954df5d3319924ff1a83e3e301f70825691b4f3.tar.gz
firejail-d954df5d3319924ff1a83e3e301f70825691b4f3.tar.zst
firejail-d954df5d3319924ff1a83e3e301f70825691b4f3.zip
audit pid
Diffstat (limited to 'src/faudit/faudit.h')
-rw-r--r--src/faudit/faudit.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/faudit/faudit.h b/src/faudit/faudit.h
new file mode 100644
index 000000000..9c001c285
--- /dev/null
+++ b/src/faudit/faudit.h
@@ -0,0 +1,37 @@
1/*
2 * Copyright (C) 2014-2016 Firejail Authors
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
21#ifndef FAUDIT_H
22#define FAUDIT_H
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26#include <unistd.h>
27#include <sys/types.h>
28#include <sys/stat.h>
29#include <sys/mount.h>
30#include <assert.h>
31
32#define errExit(msg) do { char msgout[500]; sprintf(msgout, "Error %s:%s(%d)", msg, __FUNCTION__, __LINE__); perror(msgout); exit(1);} while (0)
33
34// pid.c
35void pid(void);
36
37#endif \ No newline at end of file