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
715ccc96
Unverified
Commit
715ccc96
authored
May 31, 2017
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile: add clearer for lxc.limit{.*}
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
b98c5ab0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
confile.c
src/lxc/confile.c
+8
-5
No files found.
src/lxc/confile.c
View file @
715ccc96
...
...
@@ -254,6 +254,7 @@ static int clr_config_no_new_privs(const char *, struct lxc_conf *);
static
int
set_config_limit
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
get_config_limit
(
const
char
*
,
char
*
,
int
,
struct
lxc_conf
*
);
static
int
clr_config_limit
(
const
char
*
,
struct
lxc_conf
*
);
static
struct
lxc_config_t
config
[]
=
{
{
"lxc.arch"
,
set_config_personality
,
get_config_personality
,
clr_config_personality
,
},
...
...
@@ -326,7 +327,7 @@ static struct lxc_config_t config[] = {
{
"lxc.ephemeral"
,
set_config_ephemeral
,
get_config_ephemeral
,
clr_config_ephemeral
,
},
{
"lxc.syslog"
,
set_config_syslog
,
get_config_syslog
,
clr_config_syslog
,
},
{
"lxc.no_new_privs"
,
set_config_no_new_privs
,
get_config_no_new_privs
,
clr_config_no_new_privs
,
},
{
"lxc.limit"
,
set_config_limit
,
get_config_limit
,
NULL
},
{
"lxc.limit"
,
set_config_limit
,
get_config_limit
,
clr_config_limit
,
},
};
struct
signame
{
...
...
@@ -2773,10 +2774,7 @@ int lxc_clear_config_item(struct lxc_conf *c, const char *key)
{
int
ret
=
0
;
if
(
strncmp
(
key
,
"lxc.limit"
,
9
)
==
0
)
{
ret
=
lxc_clear_limits
(
c
,
key
);
}
else
if
(
strcmp
(
key
,
"lxc.include"
)
==
0
)
{
if
(
strcmp
(
key
,
"lxc.include"
)
==
0
)
{
lxc_clear_includes
(
c
);
}
else
{
...
...
@@ -4245,3 +4243,8 @@ static inline int clr_config_no_new_privs(const char *key, struct lxc_conf *c)
c
->
no_new_privs
=
false
;
return
0
;
}
static
inline
int
clr_config_limit
(
const
char
*
key
,
struct
lxc_conf
*
c
)
{
return
lxc_clear_limits
(
c
,
key
);
}
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