From d954df5d3319924ff1a83e3e301f70825691b4f3 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Fri, 1 Jul 2016 19:19:59 -0400 Subject: audit pid --- src/faudit/faudit.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/faudit/faudit.h (limited to 'src/faudit/faudit.h') 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 @@ +/* + * Copyright (C) 2014-2016 Firejail Authors + * + * 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 FAUDIT_H +#define FAUDIT_H +#include +#include +#include +#include +#include +#include +#include +#include + +#define errExit(msg) do { char msgout[500]; sprintf(msgout, "Error %s:%s(%d)", msg, __FUNCTION__, __LINE__); perror(msgout); exit(1);} while (0) + +// pid.c +void pid(void); + +#endif \ No newline at end of file -- cgit v1.2.3-70-g09d2