mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-08 13:24:23 +00:00
initialize capabilities for lxc-start and lxc-execute
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
7d40e69bd7
commit
0ed9cc8b00
@ -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[])
|
|||||||
|
|
||||||
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 @@
|
|||||||
#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[])
|
|||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user