1 /* 2 * Copyright (C) 2015 John Crispin <blogic@openwrt.org> 3 * Copyright (C) 2026 Daniel Golle <daniel@makrotopia.org> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU Lesser General Public License version 2.1 7 * as published by the Free Software Foundation 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 */ 14 #ifndef _JAIL_LOG_H_ 15 #define _JAIL_LOG_H_ 16 17 extern int debug; 18 #include <syslog.h> 19 #include <libubox/ulog.h> 20 21 #define INFO(fmt, ...) ULOG_INFO(fmt, ## __VA_ARGS__) 22 #define WARNING(fmt, ...) ULOG_WARN(fmt, ## __VA_ARGS__) 23 #define ERROR(fmt, ...) ULOG_ERR(fmt, ## __VA_ARGS__) 24 #define DEBUG(fmt, ...) do { \ 25 if (debug) ulog(LOG_DEBUG, fmt, ## __VA_ARGS__); \ 26 } while (0) 27 28 struct blob_attr; 29 30 const struct blob_attr *jail_oci_root_get(void); 31 void jail_oci_root_restore(const struct blob_attr *root); 32 33 int jail_unsupported(const struct blob_attr *attr); 34 void jail_cgroup_refused(const char *attr); 35 36 #endif 37
This page was automatically generated by LXR 0.3.1. • OpenWrt