Commit 0ed9cc8b by Daniel Lezcano

initialize capabilities for lxc-start and lxc-execute

parent 7d40e69b
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/param.h> #include <sys/param.h>
#include "caps.h"
#include "lxc.h" #include "lxc.h"
#include "log.h" #include "log.h"
#include "conf.h" #include "conf.h"
...@@ -93,6 +93,9 @@ int main(int argc, char *argv[]) ...@@ -93,6 +93,9 @@ int main(int argc, char *argv[])
lxc_list_init(&defines); lxc_list_init(&defines);
if (lxc_caps_init())
return -1;
if (lxc_arguments_parse(&my_args, argc, argv)) if (lxc_arguments_parse(&my_args, argc, argv))
return -1; return -1;
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <net/if.h> #include <net/if.h>
#include "log.h" #include "log.h"
#include "caps.h"
#include "lxc.h" #include "lxc.h"
#include "conf.h" #include "conf.h"
#include "cgroup.h" #include "cgroup.h"
...@@ -101,6 +102,9 @@ int main(int argc, char *argv[]) ...@@ -101,6 +102,9 @@ int main(int argc, char *argv[])
lxc_list_init(&defines); lxc_list_init(&defines);
if (lxc_caps_init())
return err;
if (lxc_arguments_parse(&my_args, argc, argv)) if (lxc_arguments_parse(&my_args, argc, argv))
return err; return err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment