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
042f8711
Unverified
Commit
042f8711
authored
Dec 08, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile: cleanup set_config_apparmor_allow_incomplete()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
755d6532
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
confile.c
src/lxc/confile.c
+6
-3
No files found.
src/lxc/confile.c
View file @
042f8711
...
@@ -1462,16 +1462,19 @@ static int set_config_apparmor_allow_incomplete(const char *key,
...
@@ -1462,16 +1462,19 @@ static int set_config_apparmor_allow_incomplete(const char *key,
struct
lxc_conf
*
lxc_conf
,
struct
lxc_conf
*
lxc_conf
,
void
*
data
)
void
*
data
)
{
{
int
ret
;
if
(
lxc_config_value_empty
(
value
))
{
if
(
lxc_config_value_empty
(
value
))
{
lxc_conf
->
lsm_aa_allow_incomplete
=
0
;
lxc_conf
->
lsm_aa_allow_incomplete
=
0
;
return
0
;
return
0
;
}
}
if
(
lxc_safe_uint
(
value
,
&
lxc_conf
->
lsm_aa_allow_incomplete
)
<
0
)
ret
=
lxc_safe_uint
(
value
,
&
lxc_conf
->
lsm_aa_allow_incomplete
);
return
-
1
;
if
(
ret
)
return
ret
;
if
(
lxc_conf
->
lsm_aa_allow_incomplete
>
1
)
if
(
lxc_conf
->
lsm_aa_allow_incomplete
>
1
)
return
-
1
;
return
ret_errno
(
EINVAL
)
;
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