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
9c0e2551
Unverified
Commit
9c0e2551
authored
Apr 15, 2020
by
Christian Brauner
Committed by
Stéphane Graber
Apr 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rexec: avoid double-close
Fixes: Coverity 1461721. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
bc15baac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rexec.c
src/lxc/rexec.c
+2
-2
No files found.
src/lxc/rexec.c
View file @
9c0e2551
...
...
@@ -88,7 +88,7 @@ static int is_memfd(void)
static
void
lxc_rexec_as_memfd
(
char
**
argv
,
char
**
envp
,
const
char
*
memfd_name
)
{
__do_close
int
execfd
=
-
EBADF
,
fd
=
-
EBADF
,
memfd
=
-
EBADF
,
tmpfd
=
-
EBADF
;
tmpfd
=
-
EBADF
;
int
ret
;
ssize_t
bytes_sent
=
0
;
struct
stat
st
=
{
0
};
...
...
@@ -143,7 +143,7 @@ static void lxc_rexec_as_memfd(char **argv, char **envp, const char *memfd_name)
if
(
fcntl
(
memfd
,
F_ADD_SEALS
,
LXC_MEMFD_REXEC_SEALS
))
return
;
execfd
=
m
emfd
;
execfd
=
m
ove_fd
(
memfd
)
;
}
else
{
char
procfd
[
LXC_PROC_PID_FD_LEN
];
...
...
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