Added options and a lookup function that will allow filtering of network interfaces

This commit is contained in:
Tobias Brunner
2012-09-21 18:16:26 +02:00
parent a2a28d90ac
commit 9513225e6b
4 changed files with 81 additions and 4 deletions
+2 -1
View File
@@ -58,12 +58,13 @@ bool libhydra_init(const char *daemon)
INIT(this,
.public = {
.attributes = attribute_manager_create(),
.kernel_interface = kernel_interface_create(),
.daemon = strdup(daemon ?: "libhydra"),
},
);
hydra = &this->public;
this->public.kernel_interface = kernel_interface_create();
if (lib->integrity &&
!lib->integrity->check(lib->integrity, "libhydra", libhydra_init))
{