X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=service%2Finstance.h;h=7490462cfae81a9d4e262839b44eb0b1bc305d8b;hp=93e18f94b3d27f10e795face75396f87257df9fa;hb=8ce928994027019c858a523f2a2078736f8e2c5d;hpb=b6777a45becef915d6a99f01e044ad508bb278c6 diff --git a/service/instance.h b/service/instance.h index 93e18f9..7490462 100644 --- a/service/instance.h +++ b/service/instance.h @@ -22,6 +22,18 @@ #define RESPAWN_ERROR (5 * 60) +struct jail { + bool procfs; + bool sysfs; + bool ubus; + bool log; + bool ronly; + char *name; + char *hostname; + struct blobmsg_list mount; + int argc; +}; + struct service_instance { struct vlist_node node; struct service *srv; @@ -39,6 +51,12 @@ struct service_instance { int respawn_count; struct timespec start; + bool trace; + bool has_jail; + bool no_new_privs; + struct jail jail; + char *seccomp; + uint32_t respawn_timeout; uint32_t respawn_threshold; uint32_t respawn_retry;