diff options
author | John Crispin <blogic@openwrt.org> | 2015-03-21 14:11:15 +0100 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-03-23 08:09:31 +0100 |
commit | 29f139217c71c8753643779c800788783bf43c23 (patch) | |
tree | 264a0818d362d0152a28d28c333b55fdaadf08e3 /service/instance.h | |
parent | dfcfcca7baf2b22d8dac1a724bdb7dd9d52f4c05 (diff) | |
download | unitd-29f139217c71c8753643779c800788783bf43c23.tar unitd-29f139217c71c8753643779c800788783bf43c23.zip |
procd can now start jailed processes
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'service/instance.h')
-rw-r--r-- | service/instance.h | 16 |
1 files changed, 16 insertions, 0 deletions
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; |