X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=service%2Finstance.h;h=7490462cfae81a9d4e262839b44eb0b1bc305d8b;hp=f76e79573986c2f9b663681e23fd1bb299edb60f;hb=e08f52e4f5fb1f20c09e7c69a616b76dc4710d6b;hpb=4bd633868e3284659668f14aa39ea84aaadc2dec diff --git a/service/instance.h b/service/instance.h index f76e795..7490462 100644 --- a/service/instance.h +++ b/service/instance.h @@ -17,10 +17,23 @@ #include #include +#include #include "../utils/utils.h" #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; @@ -38,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; @@ -45,6 +64,8 @@ struct service_instance { struct blob_attr *config; struct uloop_process proc; struct uloop_timeout timeout; + struct ustream_fd _stdout; + struct ustream_fd _stderr; struct blob_attr *command; struct blob_attr *trigger;