Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
c721e86c
Unverified
Commit
c721e86c
authored
May 31, 2017
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile: add clearer for lxc.autodev
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
bbca37d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
confile.c
src/lxc/confile.c
+10
-6
No files found.
src/lxc/confile.c
View file @
c721e86c
...
@@ -166,6 +166,7 @@ static int set_config_network_script_up(const char *, const char *, struct lxc_c
...
@@ -166,6 +166,7 @@ static int set_config_network_script_up(const char *, const char *, struct lxc_c
static
int
set_config_network_script_down
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_network_script_down
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_network_ipv6
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_network_ipv6
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_network_ipv6_gateway
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_network_ipv6_gateway
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_network_nic
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
get_config_network_item
(
const
char
*
,
char
*
,
int
,
struct
lxc_conf
*
);
static
int
get_config_network_item
(
const
char
*
,
char
*
,
int
,
struct
lxc_conf
*
);
static
int
clr_config_network_item
(
const
char
*
,
struct
lxc_conf
*
);
static
int
clr_config_network_item
(
const
char
*
,
struct
lxc_conf
*
);
...
@@ -194,10 +195,10 @@ static int get_config_seccomp(const char *, char *, int, struct lxc_conf *);
...
@@ -194,10 +195,10 @@ static int get_config_seccomp(const char *, char *, int, struct lxc_conf *);
static
int
clr_config_seccomp
(
const
char
*
,
struct
lxc_conf
*
);
static
int
clr_config_seccomp
(
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_includefile
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_includefile
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_network_nic
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_autodev
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_autodev
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
get_config_autodev
(
const
char
*
,
char
*
,
int
,
struct
lxc_conf
*
);
static
int
get_config_autodev
(
const
char
*
,
char
*
,
int
,
struct
lxc_conf
*
);
static
int
clr_config_autodev
(
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_haltsignal
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_haltsignal
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
get_config_haltsignal
(
const
char
*
,
char
*
,
int
,
struct
lxc_conf
*
);
static
int
get_config_haltsignal
(
const
char
*
,
char
*
,
int
,
struct
lxc_conf
*
);
...
@@ -295,8 +296,8 @@ static struct lxc_config_t config[] = {
...
@@ -295,8 +296,8 @@ static struct lxc_config_t config[] = {
{
"lxc.console.logfile"
,
set_config_console_logfile
,
get_config_console_logfile
,
clr_config_console_logfile
,
},
{
"lxc.console.logfile"
,
set_config_console_logfile
,
get_config_console_logfile
,
clr_config_console_logfile
,
},
{
"lxc.console"
,
set_config_console
,
get_config_console
,
clr_config_console
,
},
{
"lxc.console"
,
set_config_console
,
get_config_console
,
clr_config_console
,
},
{
"lxc.seccomp"
,
set_config_seccomp
,
get_config_seccomp
,
clr_config_seccomp
,
},
{
"lxc.seccomp"
,
set_config_seccomp
,
get_config_seccomp
,
clr_config_seccomp
,
},
{
"lxc.include"
,
set_config_includefile
,
NULL
,
NULL
},
{
"lxc.include"
,
set_config_includefile
,
NULL
,
NULL
},
{
"lxc.autodev"
,
set_config_autodev
,
get_config_autodev
,
NULL
},
{
"lxc.autodev"
,
set_config_autodev
,
get_config_autodev
,
clr_config_autodev
,
},
{
"lxc.haltsignal"
,
set_config_haltsignal
,
get_config_haltsignal
,
NULL
},
{
"lxc.haltsignal"
,
set_config_haltsignal
,
get_config_haltsignal
,
NULL
},
{
"lxc.rebootsignal"
,
set_config_rebootsignal
,
get_config_rebootsignal
,
NULL
},
{
"lxc.rebootsignal"
,
set_config_rebootsignal
,
get_config_rebootsignal
,
NULL
},
{
"lxc.stopsignal"
,
set_config_stopsignal
,
get_config_stopsignal
,
NULL
},
{
"lxc.stopsignal"
,
set_config_stopsignal
,
get_config_stopsignal
,
NULL
},
...
@@ -2790,9 +2791,6 @@ int lxc_clear_config_item(struct lxc_conf *c, const char *key)
...
@@ -2790,9 +2791,6 @@ int lxc_clear_config_item(struct lxc_conf *c, const char *key)
}
else
if
(
strcmp
(
key
,
"lxc.ephemeral"
)
==
0
)
{
}
else
if
(
strcmp
(
key
,
"lxc.ephemeral"
)
==
0
)
{
c
->
ephemeral
=
0
;
c
->
ephemeral
=
0
;
}
else
if
(
strcmp
(
key
,
"lxc.autodev"
)
==
0
)
{
c
->
autodev
=
1
;
}
else
if
(
strcmp
(
key
,
"lxc.monitor.unshare"
)
==
0
)
{
}
else
if
(
strcmp
(
key
,
"lxc.monitor.unshare"
)
==
0
)
{
c
->
monitor_unshare
=
0
;
c
->
monitor_unshare
=
0
;
...
@@ -4191,3 +4189,9 @@ static inline int clr_config_seccomp(const char *key, struct lxc_conf *c)
...
@@ -4191,3 +4189,9 @@ static inline int clr_config_seccomp(const char *key, struct lxc_conf *c)
c
->
seccomp
=
NULL
;
c
->
seccomp
=
NULL
;
return
0
;
return
0
;
}
}
static
inline
int
clr_config_autodev
(
const
char
*
key
,
struct
lxc_conf
*
c
)
{
c
->
autodev
=
1
;
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment