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
c0f1dc95
Unverified
Commit
c0f1dc95
authored
Apr 12, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: don't report success when idmaptools lack all privilege
Fixes: #3777 Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
24d1ef2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
conf.c
src/lxc/conf.c
+3
-2
No files found.
src/lxc/conf.c
View file @
c0f1dc95
...
@@ -2816,6 +2816,8 @@ static int idmaptool_on_path_and_privileged(const char *binary, cap_value_t cap)
...
@@ -2816,6 +2816,8 @@ static int idmaptool_on_path_and_privileged(const char *binary, cap_value_t cap)
lxc_file_cap_is_set
(
path
,
CAP_SETGID
,
CAP_EFFECTIVE
)
&&
lxc_file_cap_is_set
(
path
,
CAP_SETGID
,
CAP_EFFECTIVE
)
&&
lxc_file_cap_is_set
(
path
,
CAP_SETGID
,
CAP_PERMITTED
))
lxc_file_cap_is_set
(
path
,
CAP_SETGID
,
CAP_PERMITTED
))
return
log_debug
(
1
,
"The binary
\"
%s
\"
has CAP_SETGID in its CAP_EFFECTIVE and CAP_PERMITTED sets"
,
path
);
return
log_debug
(
1
,
"The binary
\"
%s
\"
has CAP_SETGID in its CAP_EFFECTIVE and CAP_PERMITTED sets"
,
path
);
return
0
;
#else
#else
/*
/*
* If we cannot check for file capabilities we need to give the benefit
* If we cannot check for file capabilities we need to give the benefit
...
@@ -2823,9 +2825,8 @@ static int idmaptool_on_path_and_privileged(const char *binary, cap_value_t cap)
...
@@ -2823,9 +2825,8 @@ static int idmaptool_on_path_and_privileged(const char *binary, cap_value_t cap)
* file capabilities are set.
* file capabilities are set.
*/
*/
DEBUG
(
"Cannot check for file capabilities as full capability support is missing. Manual intervention needed"
);
DEBUG
(
"Cannot check for file capabilities as full capability support is missing. Manual intervention needed"
);
#endif
return
1
;
return
1
;
#endif
}
}
static
int
lxc_map_ids_exec_wrapper
(
void
*
args
)
static
int
lxc_map_ids_exec_wrapper
(
void
*
args
)
...
...
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