[email protected] (Robert Elz) writes:

>    Date:        Thu, 3 Jun 2021 09:12:52 -0000 (UTC)
>    From:        [email protected] (Michael van Elst)
>    Message-ID:  <[email protected]>

>  | namei() return EEXIST when it works on a CREATE operation and
>  | crosses a mountpoint.

>Could we perhaps simply have procfs remove O_CREAT from the flags
>passed by the user?   It is never going to work to create a file
>inside a procfs mount, is it?

procfs will anser EOPNOTSUPP on VOP_CREATE. But it never comes that
far.

On the other hand, the logic in namei() might not be correct.

It looks like a check to prevent CREATE operations on a mountpoint,
but that's neither necessary nor compatible when the object
already exists.


Reply via email to