mirror of
git://github.com/lxc/lxc
synced 2025-08-31 16:14:12 +00:00
initialize capabilities for lxc-start and lxc-execute
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
|
||||
#include "caps.h"
|
||||
#include "lxc.h"
|
||||
#include "log.h"
|
||||
#include "conf.h"
|
||||
@@ -93,6 +93,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
lxc_list_init(&defines);
|
||||
|
||||
if (lxc_caps_init())
|
||||
return -1;
|
||||
|
||||
if (lxc_arguments_parse(&my_args, argc, argv))
|
||||
return -1;
|
||||
|
||||
|
@@ -41,6 +41,7 @@
|
||||
#include <net/if.h>
|
||||
|
||||
#include "log.h"
|
||||
#include "caps.h"
|
||||
#include "lxc.h"
|
||||
#include "conf.h"
|
||||
#include "cgroup.h"
|
||||
@@ -101,6 +102,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
lxc_list_init(&defines);
|
||||
|
||||
if (lxc_caps_init())
|
||||
return err;
|
||||
|
||||
if (lxc_arguments_parse(&my_args, argc, argv))
|
||||
return err;
|
||||
|
||||
|
Reference in New Issue
Block a user