Re: [PATCH 4/4] vfs: fs/namei.c: if RESOLVE_NO_XDEV passed to openat2, don't *trigger* automounts
Askar Safin <[email protected]> Mon, 25 Aug 2025 21:48:17 +0400
| Newsgroups | gmane.linux.file-systems,gmane.linux.kernel.autofs |
|---|---|
| Message-ID | <[email protected]> |
---- On Mon, 18 Aug 2025 11:15:16 +0400 Aleksa Sarai <[email protected]> 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