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
c98770b9
Unverified
Commit
c98770b9
authored
Mar 27, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: reinitialize lists
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
3cec50fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
conf.c
src/lxc/conf.c
+18
-0
No files found.
src/lxc/conf.c
View file @
c98770b9
...
@@ -3627,6 +3627,7 @@ int lxc_clear_config_caps(struct lxc_conf *c)
...
@@ -3627,6 +3627,7 @@ int lxc_clear_config_caps(struct lxc_conf *c)
free
(
it
);
free
(
it
);
}
}
lxc_list_init
(
&
c
->
caps
);
return
0
;
return
0
;
}
}
...
@@ -3640,6 +3641,7 @@ static int lxc_free_idmap(struct lxc_list *id_map)
...
@@ -3640,6 +3641,7 @@ static int lxc_free_idmap(struct lxc_list *id_map)
free
(
it
);
free
(
it
);
}
}
lxc_list_init
(
id_map
);
return
0
;
return
0
;
}
}
...
@@ -3666,6 +3668,7 @@ int lxc_clear_config_keepcaps(struct lxc_conf *c)
...
@@ -3666,6 +3668,7 @@ int lxc_clear_config_keepcaps(struct lxc_conf *c)
free
(
it
);
free
(
it
);
}
}
lxc_list_init
(
&
c
->
keepcaps
);
return
0
;
return
0
;
}
}
...
@@ -3721,6 +3724,9 @@ int lxc_clear_cgroups(struct lxc_conf *c, const char *key, int version)
...
@@ -3721,6 +3724,9 @@ int lxc_clear_cgroups(struct lxc_conf *c, const char *key, int version)
free
(
it
);
free
(
it
);
}
}
if
(
all
)
lxc_list_init
(
list
);
return
0
;
return
0
;
}
}
...
@@ -3821,6 +3827,9 @@ int lxc_clear_procs(struct lxc_conf *c, const char *key)
...
@@ -3821,6 +3827,9 @@ int lxc_clear_procs(struct lxc_conf *c, const char *key)
free
(
it
);
free
(
it
);
}
}
if
(
all
)
lxc_list_init
(
&
c
->
procs
);
return
0
;
return
0
;
}
}
...
@@ -3834,6 +3843,7 @@ int lxc_clear_groups(struct lxc_conf *c)
...
@@ -3834,6 +3843,7 @@ int lxc_clear_groups(struct lxc_conf *c)
free
(
it
);
free
(
it
);
}
}
lxc_list_init
(
&
c
->
groups
);
return
0
;
return
0
;
}
}
...
@@ -3847,6 +3857,7 @@ int lxc_clear_environment(struct lxc_conf *c)
...
@@ -3847,6 +3857,7 @@ int lxc_clear_environment(struct lxc_conf *c)
free
(
it
);
free
(
it
);
}
}
lxc_list_init
(
&
c
->
environment
);
return
0
;
return
0
;
}
}
...
@@ -3860,6 +3871,7 @@ int lxc_clear_mount_entries(struct lxc_conf *c)
...
@@ -3860,6 +3871,7 @@ int lxc_clear_mount_entries(struct lxc_conf *c)
free
(
it
);
free
(
it
);
}
}
lxc_list_init
(
&
c
->
mount_list
);
return
0
;
return
0
;
}
}
...
@@ -3890,6 +3902,7 @@ int lxc_clear_hooks(struct lxc_conf *c, const char *key)
...
@@ -3890,6 +3902,7 @@ int lxc_clear_hooks(struct lxc_conf *c, const char *key)
free
(
it
->
elem
);
free
(
it
->
elem
);
free
(
it
);
free
(
it
);
}
}
lxc_list_init
(
&
c
->
hooks
[
i
]);
done
=
true
;
done
=
true
;
}
}
...
@@ -3910,6 +3923,8 @@ static inline void lxc_clear_aliens(struct lxc_conf *conf)
...
@@ -3910,6 +3923,8 @@ static inline void lxc_clear_aliens(struct lxc_conf *conf)
free
(
it
->
elem
);
free
(
it
->
elem
);
free
(
it
);
free
(
it
);
}
}
lxc_list_init
(
&
conf
->
aliens
);
}
}
void
lxc_clear_includes
(
struct
lxc_conf
*
conf
)
void
lxc_clear_includes
(
struct
lxc_conf
*
conf
)
...
@@ -3921,6 +3936,8 @@ void lxc_clear_includes(struct lxc_conf *conf)
...
@@ -3921,6 +3936,8 @@ void lxc_clear_includes(struct lxc_conf *conf)
free
(
it
->
elem
);
free
(
it
->
elem
);
free
(
it
);
free
(
it
);
}
}
lxc_list_init
(
&
conf
->
includes
);
}
}
int
lxc_clear_apparmor_raw
(
struct
lxc_conf
*
c
)
int
lxc_clear_apparmor_raw
(
struct
lxc_conf
*
c
)
...
@@ -3933,6 +3950,7 @@ int lxc_clear_apparmor_raw(struct lxc_conf *c)
...
@@ -3933,6 +3950,7 @@ int lxc_clear_apparmor_raw(struct lxc_conf *c)
free
(
it
);
free
(
it
);
}
}
lxc_list_init
(
&
c
->
lsm_aa_raw
);
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