From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B28F7385EC56; Tue, 25 Aug 2020 12:39:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B28F7385EC56 From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/26371] [RFE] please add clone3() wrapper (in particular the CLONE_INTO_CGROUP feature of it) Date: Tue, 25 Aug 2020 12:39:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: flagtypes.name Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2020 12:39:23 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26371 Florian Weimer changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |security- --- Comment #1 from Florian Weimer --- My understanding if this issue is that the clone3 wrapper will not actually help you that much. I suspect what you actually need is a way to perform certain system calls a= fter calling clone3. The newly created userspace thread will eventually call exe= cve, but it is *not* expected to replace the original process (unlike calling ex= ecve from a full libc thread created by pthread_create). Can you describe in a bit more detail what you need? To what extent to do y= ou need to share address space? Are you looking for a vfork-style clone? It ma= kes things simpler because you could share the stack, and error reporting could= use shared memory. Which system calls do you need to call? Would you be able to call different functions than the usual system call wrappers to perform the tasks you need? --=20 You are receiving this mail because: You are on the CC list for the bug.=