[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mounting EFI partition: default to `uid=0,gid=0`



Hi, see in-line.

-------- Original Message --------
On Nov 21, 2023, 4:59 PM, Steve McIntyre < steve@einval.com> wrote:
On Tue, Nov 21, 2023 at 03:16:42PM +0000, Danny van Heumen wrote: >Hi, > >AFAICT, there was no follow-up to this. Does this mean that it is >preferred that ownership is determined solely by the user who mounts >the EFI partition? In normal use, the EFI partition isn't mounted by a user. What are you trying to solve here?


I wanted to make the partition user-mountable such that I can mount it before upgrading packages. The partition would not be mounted by default. (`noauto,users`) Then I found out that it defaults to ownership of mounting users, which is not good.

As I mentioned previously, I would argue that the ESP should always mount with owner 0, even if my use case/experiment itself is an outlier. I spotted my mistake, but was surprised by how owner is chosen (in such a case).

Yes, even when using sudo this shouldn't be a problem, however the behavior does deviate from other filesystems which have their own permission bits therefore have "protection" (maybe a strong word) against this situation.



-- Steve McIntyre, Cambridge, UK. steve@einval.com < Aardvark> I dislike C++ to start with. C++11 just seems to be handing rope-creating factories for users to hang multiple instances of themselves.

Reply to: