Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
+#ifndef _JAIL_CAPABILITIES_H_
+#define _JAIL_CAPABILITIES_H_
int drop_capabilities(const char *file);
+
+#endif
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
+#ifndef _JAIL_ELF_H_
+#define _JAIL_ELF_H_
-#ifndef _ELF_H__
#include <libubox/avl.h>
#include <libubox/avl-cmp.h>
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
+#ifndef _JAIL_LOG_H_
+#define _JAIL_LOG_H_
extern int debug;
#include <syslog.h>
if (debug) printf("jail: "fmt, ## __VA_ARGS__); \
} while (0)
+#endif
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
+#ifndef _JAIL_SECCOMP_H_
+#define _JAIL_SECCOMP_H_
#define INFO(fmt, ...) do { \
syslog(LOG_INFO,"preload-seccomp: "fmt, ## __VA_ARGS__); \
} while (0)
int install_syscall_filter(const char *argv, const char *file);
+
+#endif