X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=service%2Finstance.h;h=3fb33e9b1cd7891018ae9e1f3f8b13bde6018ae7;hp=93e18f94b3d27f10e795face75396f87257df9fa;hb=29f139217c71c8753643779c800788783bf43c23;hpb=dfcfcca7baf2b22d8dac1a724bdb7dd9d52f4c05;ds=sidebyside diff --git a/service/instance.h b/service/instance.h index 93e18f9..3fb33e9 100644 --- a/service/instance.h +++ b/service/instance.h @@ -22,6 +22,17 @@ #define RESPAWN_ERROR (5 * 60) +struct jail { + bool procfs; + bool sysfs; + bool ubus; + bool log; + char *name; + char *root; + struct blobmsg_list mount; + int argc; +}; + struct service_instance { struct vlist_node node; struct service *srv; @@ -39,6 +50,11 @@ struct service_instance { int respawn_count; struct timespec start; + bool trace; + bool has_jail; + struct jail jail; + char *seccomp; + uint32_t respawn_timeout; uint32_t respawn_threshold; uint32_t respawn_retry;