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
d60d18c6
Unverified
Commit
d60d18c6
authored
May 31, 2017
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile: add getter for lxc.aa_allow_incomplete
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
104c8e6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
confile.c
src/lxc/confile.c
+16
-9
No files found.
src/lxc/confile.c
View file @
d60d18c6
...
...
@@ -83,6 +83,8 @@ static int set_config_lsm_aa_profile(const char *, const char *, struct lxc_conf
static
int
get_config_lsm_aa_profile
(
struct
lxc_container
*
,
const
char
*
,
char
*
,
int
);
static
int
set_config_lsm_aa_incomplete
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
get_config_lsm_aa_incomplete
(
struct
lxc_container
*
,
const
char
*
,
char
*
,
int
);
static
int
set_config_lsm_se_context
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_cgroup
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
int
set_config_idmap
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
...
...
@@ -138,13 +140,13 @@ static int set_config_no_new_privs(const char *, const char *, struct lxc_conf *
static
int
set_config_limit
(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
);
static
struct
lxc_config_t
config
[]
=
{
{
"lxc.arch"
,
set_config_personality
,
get_config_personality
,
NULL
},
{
"lxc.pts"
,
set_config_pts
,
get_config_pts
,
NULL
},
{
"lxc.tty"
,
set_config_tty
,
get_config_tty
,
NULL
},
{
"lxc.devttydir"
,
set_config_ttydir
,
get_config_ttydir
,
NULL
},
{
"lxc.kmsg"
,
set_config_kmsg
,
get_config_kmsg
,
NULL
},
{
"lxc.aa_profile"
,
set_config_lsm_aa_profile
,
get_config_lsm_aa_profile
,
NULL
},
{
"lxc.aa_allow_incomplete"
,
set_config_lsm_aa_incomplete
,
NULL
,
NULL
},
{
"lxc.arch"
,
set_config_personality
,
get_config_personality
,
NULL
},
{
"lxc.pts"
,
set_config_pts
,
get_config_pts
,
NULL
},
{
"lxc.tty"
,
set_config_tty
,
get_config_tty
,
NULL
},
{
"lxc.devttydir"
,
set_config_ttydir
,
get_config_ttydir
,
NULL
},
{
"lxc.kmsg"
,
set_config_kmsg
,
get_config_kmsg
,
NULL
},
{
"lxc.aa_profile"
,
set_config_lsm_aa_profile
,
get_config_lsm_aa_profile
,
NULL
},
{
"lxc.aa_allow_incomplete"
,
set_config_lsm_aa_incomplete
,
get_config_lsm_aa_incomplete
,
NULL
},
{
"lxc.se_context"
,
set_config_lsm_se_context
,
NULL
,
NULL
},
{
"lxc.cgroup"
,
set_config_cgroup
,
NULL
,
NULL
},
{
"lxc.id_map"
,
set_config_idmap
,
NULL
,
NULL
},
...
...
@@ -3016,8 +3018,6 @@ int lxc_get_config_item(struct lxc_conf *c, const char *key, char *retv,
return
lxc_get_auto_mounts
(
c
,
retv
,
inlen
);
else
if
(
strcmp
(
key
,
"lxc.mount"
)
==
0
)
v
=
c
->
fstab
;
else
if
(
strcmp
(
key
,
"lxc.aa_allow_incomplete"
)
==
0
)
return
lxc_get_conf_int
(
c
,
retv
,
inlen
,
c
->
lsm_aa_allow_incomplete
);
else
if
(
strcmp
(
key
,
"lxc.se_context"
)
==
0
)
v
=
c
->
lsm_se_context
;
else
if
(
strcmp
(
key
,
"lxc.logfile"
)
==
0
)
...
...
@@ -3736,3 +3736,10 @@ static int get_config_lsm_aa_profile(struct lxc_container *c, const char *key,
{
return
lxc_get_conf_str
(
retv
,
inlen
,
c
->
lxc_conf
->
lsm_aa_profile
);
}
static
int
get_config_lsm_aa_incomplete
(
struct
lxc_container
*
c
,
const
char
*
key
,
char
*
retv
,
int
inlen
)
{
return
lxc_get_conf_int
(
c
->
lxc_conf
,
retv
,
inlen
,
c
->
lxc_conf
->
lsm_aa_allow_incomplete
);
}
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