diff options
author | Diederik de Groot <ddegroot@talon.nl> | 2017-04-20 15:14:33 +0200 |
---|---|---|
committer | Diederik de Groot <ddegroot@talon.nl> | 2017-04-20 15:14:33 +0200 |
commit | 49af12e7c6e9e6b45a8ae0a0a9f0d674527e9be2 (patch) | |
tree | 37b807b2361cd7ecd61fab35ec6f24b6e709b835 /dragonflybsd/DragonFlyBSDProcessList.h | |
parent | b258d6e53eb421651ac3fbe9c99e636f0f8cdfc4 (diff) |
implement: readJailName
Note: dragonflybsd does not have 'jail_get' like freebsd does.
It does however provide a sysctl "jail.list" which returns a list of all jails.
Diffstat (limited to 'dragonflybsd/DragonFlyBSDProcessList.h')
-rw-r--r-- | dragonflybsd/DragonFlyBSDProcessList.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dragonflybsd/DragonFlyBSDProcessList.h b/dragonflybsd/DragonFlyBSDProcessList.h index 2bc95c73..816e66d6 100644 --- a/dragonflybsd/DragonFlyBSDProcessList.h +++ b/dragonflybsd/DragonFlyBSDProcessList.h @@ -19,6 +19,7 @@ in the source distribution for its full text. #include <sys/jail.h> #include <sys/uio.h> #include <sys/resource.h> +#include "Hashtable.h" #include "DragonFlyBSDProcess.h" #define JAIL_ERRMSGLEN 1024 @@ -52,6 +53,7 @@ typedef struct DragonFlyBSDProcessList_ { unsigned long *cp_times_o; unsigned long *cp_times_n; + Hashtable *jails; } DragonFlyBSDProcessList; @@ -64,7 +66,7 @@ void ProcessList_delete(ProcessList* this); char* DragonFlyBSDProcessList_readProcessName(kvm_t* kd, struct kinfo_proc* kproc, int* basenameEnd); -char* DragonFlyBSDProcessList_readJailName(struct kinfo_proc* kproc); +char* DragonFlyBSDProcessList_readJailName(DragonFlyBSDProcessList* dfpl, int jailid); void ProcessList_goThroughEntries(ProcessList* this); |