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
973082f5
Unverified
Commit
973082f5
authored
May 31, 2017
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile: add clearer for lxc.include
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
fdf3c589
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
confile.c
src/lxc/confile.c
+6
-6
No files found.
src/lxc/confile.c
View file @
973082f5
...
@@ -194,8 +194,8 @@ static int set_config_seccomp(const char *, const char *, struct lxc_conf *);
...
@@ -194,8 +194,8 @@ static int set_config_seccomp(const char *, const char *, struct lxc_conf *);
static
int
get_config_seccomp
(
const
char
*
,
char
*
,
int
,
struct
lxc_conf
*
);
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
s
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
clr_config_includefile
(
const
char
*
,
struct
lxc_conf
*
);
static
int
clr_config_includefile
s
(
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
*
);
...
@@ -311,7 +311,7 @@ static struct lxc_config_t config[] = {
...
@@ -311,7 +311,7 @@ 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
,
clr_config_includefile
,
},
{
"lxc.include"
,
set_config_includefile
s
,
NULL
,
clr_config_includefiles
,
},
{
"lxc.autodev"
,
set_config_autodev
,
get_config_autodev
,
clr_config_autodev
,
},
{
"lxc.autodev"
,
set_config_autodev
,
get_config_autodev
,
clr_config_autodev
,
},
{
"lxc.haltsignal"
,
set_config_haltsignal
,
get_config_haltsignal
,
clr_config_haltsignal
,
},
{
"lxc.haltsignal"
,
set_config_haltsignal
,
get_config_haltsignal
,
clr_config_haltsignal
,
},
{
"lxc.rebootsignal"
,
set_config_rebootsignal
,
get_config_rebootsignal
,
clr_config_rebootsignal
,
},
{
"lxc.rebootsignal"
,
set_config_rebootsignal
,
get_config_rebootsignal
,
clr_config_rebootsignal
,
},
...
@@ -2447,8 +2447,8 @@ out:
...
@@ -2447,8 +2447,8 @@ out:
return
ret
;
return
ret
;
}
}
static
int
set_config_includefile
(
const
char
*
key
,
const
char
*
value
,
static
int
set_config_includefile
s
(
const
char
*
key
,
const
char
*
value
,
struct
lxc_conf
*
lxc_conf
)
struct
lxc_conf
*
lxc_conf
)
{
{
/* Set config value to default. */
/* Set config value to default. */
if
(
config_value_empty
(
value
))
{
if
(
config_value_empty
(
value
))
{
...
@@ -4241,7 +4241,7 @@ static inline int clr_config_limit(const char *key, struct lxc_conf *c)
...
@@ -4241,7 +4241,7 @@ static inline int clr_config_limit(const char *key, struct lxc_conf *c)
return
lxc_clear_limits
(
c
,
key
);
return
lxc_clear_limits
(
c
,
key
);
}
}
static
inline
int
clr_config_includes
(
const
char
*
key
,
struct
lxc_conf
*
c
)
static
inline
int
clr_config_include
file
s
(
const
char
*
key
,
struct
lxc_conf
*
c
)
{
{
lxc_clear_includes
(
c
);
lxc_clear_includes
(
c
);
return
0
;
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