From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.seebs.net (mail.seebs.net [162.213.38.76]) by mail.openembedded.org (Postfix) with ESMTP id 180E178557 for ; Mon, 26 Mar 2018 19:31:07 +0000 (UTC) Received: from seebsdell (unknown [24.196.59.174]) by mail.seebs.net (Postfix) with ESMTPSA id E61C32E8928; Mon, 26 Mar 2018 14:31:08 -0500 (CDT) Date: Mon, 26 Mar 2018 14:31:07 -0500 From: Seebs To: Andreas =?UTF-8?B?TcO8bGxlcg==?= Message-ID: <20180326143107.48f153a5@seebsdell> In-Reply-To: References: <20180324122357.668e6afc@seebsdell> <20180324132246.28c2f8cd@seebsdell> <20180324142427.53da953d@seebsdell> <20180324145044.168f7e3f@seebsdell> X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Cc: OE-core Subject: Re: pseudo: host user contamination X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2018 19:31:08 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 26 Mar 2018 20:49:30 +0200 Andreas M=C3=BCller wrote: > Interesting background: mv/renameat2 change seemed so important for > Fedora that they backported the changes into 8.27. It looks like the reason for this is the RENAME_NOREPLACE flag, which avoids a possible race condition. FWIW, I've traded a couple of emails with the coreutils people, and I think at this point I'm going to try a custom wrapper for syscall that just yields ENOTSUPP, because any attempt to do something fancier seems like it's going to be potentially error-prone. Since the man page gave the ia64 example, I went and checked, and it is indeed the case that calls other than syscall(2) will clobber r10 after system calls, so it's actually not possible for a C wrapper to do what we want on an intercepted syscall. Luckily for everyone, no one actually cares about ia64, aka Itanic. -s