Re: [hackers] [sbase][PATCH] which: check AT_EACCESS

From: Michael Forney <>
Date: Tue, 30 Jul 2019 08:40:43 -0700

On 2019-07-29, Mattias Andrée <> wrote:
> setuid is inherited (exec(3) never changes the effective user according
> to POSIX unless the new process have the setuid flag and it is not blocked
> by the ST_NOSUID mount option). However, I cannot think of a real world
> scenario where this would matter; it would be if the user have a program
> similar to sudo that only changes the effective user.

Ah, okay, thanks for the explanation. Well, I suppose it doesn't hurt,
and also matches `test -x`, which uses AT_EACCESS as well.

Received on Tue Jul 30 2019 - 17:40:43 CEST

This archive was generated by hypermail 2.3.0 : Tue Jul 30 2019 - 17:48:27 CEST