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.
*/
* 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);
int drop_capabilities(const char *file);
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
+#ifndef _JAIL_ELF_H_
+#define _JAIL_ELF_H_
#include <libubox/avl.h>
#include <libubox/avl-cmp.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.
*/
* 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>
extern int debug;
#include <syslog.h>
if (debug) printf("jail: "fmt, ## __VA_ARGS__); \
} while (0)
if (debug) printf("jail: "fmt, ## __VA_ARGS__); \
} while (0)
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
* 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__); \
#define INFO(fmt, ...) do { \
syslog(LOG_INFO,"preload-seccomp: "fmt, ## __VA_ARGS__); \
} while (0)
int install_syscall_filter(const char *argv, const char *file);
} while (0)
int install_syscall_filter(const char *argv, const char *file);