---- On Mon, 18 Aug 2025 11:15:16 +0400 Aleksa Sarai <cyphar@xxxxxxxxxx> wrote --- > but we should have O_PATH|O_DIRECTORY produce > identical behaviour to O_PATH in this case IMHO. I agree. Original intention of autofs was so: stat should not trigger automounts in final component, and everything else - should trigger (by default). See https://elixir.bootlin.com/linux/v6.17-rc2/source/Documentation/filesystems/autofs.rst#L93 . So, yes, theoretically both O_PATH and O_PATH | O_DIRECTORY should follow automounts (and nearly all other syscalls should, too). -- Askar Safin https://types.pl/@safinaskar
