[PATCH] fs: Allow opening only regular files during execve().

From: Tetsuo Handa
Date: Mon Jan 21 2019 - 05:15:31 EST


On Tue, Dec 12, 2017 at 2:06 PM, Eric Biggers <ebiggers3@xxxxxxxxx> wrote:
> I'm not sure what the fix will be. Maybe the proc handlers should take a
> different lock instead of cred_guard_mutex. Or perhaps execve should check that
> the file is a regular file before it attempts to open it.

We can easily distinguish open() from execve() and open() from others. ;-)