[OpenWrt-Devel] [PATCH procd] instance: Improve missing jail binary message
Kevin Darbyshire-Bryant
ldir at darbyshire-bryant.me.uk
Thu Jan 30 12:37:23 EST 2020
Signed-off-by: Kevin Darbyshire-Bryant <ldir at darbyshire-bryant.me.uk>
---
service/instance.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/service/instance.c b/service/instance.c
index e872ba0..b78a65f 100644
--- a/service/instance.c
+++ b/service/instance.c
@@ -824,7 +824,8 @@ instance_jail_parse(struct service_instance *in, struct blob_attr *attr)
r = stat(UJAIL_BIN_PATH, &s);
if (r < 0) {
- ERROR("unable to find %s: %m (%d)\n", UJAIL_BIN_PATH, r);
+ ULOG_WARN("Cannot jail service %s::%s. %s: %m (%d) Are jails enabled?\n",
+ in->srv->name, in->name, UJAIL_BIN_PATH, r);
return 0;
}
--
2.21.1 (Apple Git-122.3)
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list