conf: cleanup macros setup_mount_entries

parent 79bcf5ee
...@@ -2413,17 +2413,13 @@ static int setup_mount_entries(const struct lxc_conf *conf, ...@@ -2413,17 +2413,13 @@ static int setup_mount_entries(const struct lxc_conf *conf,
struct lxc_list *mount, const char *lxc_name, struct lxc_list *mount, const char *lxc_name,
const char *lxc_path) const char *lxc_path)
{ {
int ret; __do_fclose FILE *f = NULL;
FILE *f;
f = make_anonymous_mount_file(mount, conf->lsm_aa_allow_nesting); f = make_anonymous_mount_file(mount, conf->lsm_aa_allow_nesting);
if (!f) if (!f)
return -1; return -1;
ret = mount_file_entries(conf, rootfs, f, lxc_name, lxc_path); return mount_file_entries(conf, rootfs, f, lxc_name, lxc_path);
fclose(f);
return ret;
} }
static int parse_cap(const char *cap) static int parse_cap(const char *cap)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment