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
9394b6dc
Unverified
Commit
9394b6dc
authored
Feb 17, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: use brackets to clarify check semantics
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
69c29673
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
conf.c
src/lxc/conf.c
+1
-1
No files found.
src/lxc/conf.c
View file @
9394b6dc
...
@@ -687,7 +687,7 @@ static int lxc_mount_auto_mounts(struct lxc_handler *handler, int flags)
...
@@ -687,7 +687,7 @@ static int lxc_mount_auto_mounts(struct lxc_handler *handler, int flags)
* CAP_SYS_ADMIN, do only default to :mixed, because then the
* CAP_SYS_ADMIN, do only default to :mixed, because then the
* container can't remount it read-write.
* container can't remount it read-write.
*/
*/
if
(
cg_flags
==
LXC_AUTO_CGROUP_NOSPEC
||
cg_flags
==
LXC_AUTO_CGROUP_FULL_NOSPEC
)
{
if
(
(
cg_flags
==
LXC_AUTO_CGROUP_NOSPEC
)
||
(
cg_flags
==
LXC_AUTO_CGROUP_FULL_NOSPEC
)
)
{
int
has_sys_admin
=
0
;
int
has_sys_admin
=
0
;
if
(
!
lxc_list_empty
(
&
conf
->
keepcaps
))
if
(
!
lxc_list_empty
(
&
conf
->
keepcaps
))
...
...
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