Re: [PATCH] erofs: use the opener's credential when verifing metadata accesses
Tatsuyuki Ishi <[email protected]>
| Newsgroups | org.ozlabs.lists.linux-erofs,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CABqzrSNDWO90LY6m4AhipDDq5szygKuZ2x_mFEVir_reyaB+pg@mail.gmail.com> |
> - using the opener credentials when accessing the backing file seems > wrong. The entity accessing it is the file system, so it should > have system or mounter credentials, not that of someone causing > metadata / fs data access. And this applies to all access by > a file system backed by a backing file. I think there's probably some confusion of terminology here. buf->file is opened with the mounter's credentials, so we are impersonating the mounter here. Perhaps the commit message could describe that more clearly. Same for the previous patches mentioned. [resend: previous mail was rejected due to HTML]