projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76d4488
)
nspawn: also close uid shift socket in the parent
author
Lennart Poettering
<lennart@poettering.net>
Mon, 7 Sep 2015 23:22:46 +0000
(
01:22
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 7 Sep 2015 23:22:46 +0000
(
01:22
+0200)
We should really close all parent sides of our child/parent socket
pairs.
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index
ad383e8
..
33943a4
100644
(file)
--- a/
src/nspawn/nspawn.c
+++ b/
src/nspawn/nspawn.c
@@
-3359,6
+3359,7
@@
int main(int argc, char *argv[]) {
kmsg_socket_pair[1] = safe_close(kmsg_socket_pair[1]);
rtnl_socket_pair[1] = safe_close(rtnl_socket_pair[1]);
pid_socket_pair[1] = safe_close(pid_socket_pair[1]);
+ uid_shift_socket_pair[1] = safe_close(uid_shift_socket_pair[1]);
/* Wait for the outer child. */
r = wait_for_terminate_and_warn("namespace helper", pid, NULL);