[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/12: linux-container: Mark socket pair as SOCK_CLOEXEC.
From: |
guix-commits |
Subject: |
03/12: linux-container: Mark socket pair as SOCK_CLOEXEC. |
Date: |
Sat, 24 Sep 2022 12:15:29 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 00d5bb5d7f18555c250b4a6ef0b33b628acc3a3a
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Sep 23 22:48:16 2022 +0200
linux-container: Mark socket pair as SOCK_CLOEXEC.
* gnu/build/linux-container.scm (run-container): Pass SOCK_CLOEXEC to
'socketpair'.
---
gnu/build/linux-container.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/build/linux-container.scm b/gnu/build/linux-container.scm
index 73db127974..72e3a45422 100644
--- a/gnu/build/linux-container.scm
+++ b/gnu/build/linux-container.scm
@@ -233,7 +233,7 @@ that host UIDs (respectively GIDs) map to in the namespace."
;; The parent process must initialize the user namespace for the child
;; before it can boot. To negotiate this, a pipe is used such that the
;; child process blocks until the parent writes to it.
- (match (socketpair PF_UNIX SOCK_STREAM 0)
+ (match (socketpair PF_UNIX (logior SOCK_CLOEXEC SOCK_STREAM) 0)
((child . parent)
(let ((flags (namespaces->bit-mask namespaces)))
(match (clone flags)
- branch master updated (20fbc0bb08 -> b814bdf441), guix-commits, 2022/09/24
- 01/12: narinfo: Fix misleading docstring., guix-commits, 2022/09/24
- 04/12: gnu: Add texlive-latex-frankenstein., guix-commits, 2022/09/24
- 07/12: gnu: Add rot8., guix-commits, 2022/09/24
- 02/12: substitute: Test behavior with unroutable substitute server addresses., guix-commits, 2022/09/24
- 05/12: gnu: Add texlive-latex-sidecap., guix-commits, 2022/09/24
- 08/12: build-system/go: Respect #:imported-modules when cross-compiling., guix-commits, 2022/09/24
- 10/12: gnu: emacs-lua-mode: Fix build., guix-commits, 2022/09/24
- 09/12: gnu: go-ipfs: Unbundle many dependencies., guix-commits, 2022/09/24
- 12/12: Update NEWS., guix-commits, 2022/09/24
- 03/12: linux-container: Mark socket pair as SOCK_CLOEXEC.,
guix-commits <=
- 06/12: gnu: Add batsignal., guix-commits, 2022/09/24
- 11/12: gnu: avizo: Update to 1.2.1., guix-commits, 2022/09/24