From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Fri, 14 May 2021 11:12:11 +0200 Subject: [LTP] [PATCH] syscalls/unshare02: Fix failures on Debian In-Reply-To: <20210514080708.20036-1-chrubis@suse.cz> References: <20210514080708.20036-1-chrubis@suse.cz> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Cyril, > The order of checks in kernel is not defined and on Debian we end up > getting eperm even before the flags are checked which fails the invalid > flags testcase. > The fix is simple, we change the test to setuid() only for the EPERM > test. Reviewed-by: Petr Vorel Tested-by: Petr Vorel Thanks! Kind regards, Petr