I recently discovered that `/boot/efi`, being a FAT parition, is mounted with an implicit owner and group, because FAT cannot store permissions. For the default use case, `/boot/efi` is mounted automatically during boot, so there is little risk. Withdiffirent mount options, this may become an issue.
Was it ever considered to add `uid=0,gid=0` as default mount options for the EFI System Partition (ESP)?
Hi,diffirent mount options, this may become an issue.
On 09/11/2023 at 17:36, Danny van Heumen wrote:
I recently discovered that `/boot/efi`, being a FAT parition, is mounted with an implicit owner and group, because FAT cannot store permissions. For the default use case, `/boot/efi` is mounted automatically during boot, so there is little risk. With
Was it ever considered to add `uid=0,gid=0` as default mount options for the EFI System Partition (ESP)?
Which use cases would this be useful for ?
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?
Hi,
Resending, as I forgot to reply to the list. Response in line.
On Thursday, 9 November 2023 at 20:52, Pascal Hambourg pascal@plouf.fr.eu.org wrote:With diffirent mount options, this may become an issue.
Hi,
On 09/11/2023 at 17:36, Danny van Heumen wrote:
I recently discovered that `/boot/efi`, being a FAT parition, is mounted with an implicit owner and group, because FAT cannot store permissions. For the default use case, `/boot/efi` is mounted automatically during boot, so there is little risk.
Was it ever considered to add `uid=0,gid=0` as default mount options for the EFI System Partition (ESP)?
I would argue that this should be independent of use case, that is you would want to ensure the ESP is always accessed as root. (Same as for example the `umask=0077` setting that I think is already part of the install.)
Apart from that, I was experimenting with having /boot not auto-mounted, but only mounted manually when performing system updates.
Which use cases would this be useful for ?
On Nov 21, 2023, 4:59 PM, Steve McIntyre < steve@einval.com> wrote:
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.
[ Argh, please turn off the crappy auto-encryption with your
protonmail setup. It's utterly pointless when discussion is going to
a mailing list too... ]
Hi Danny,
On Tue, Nov 21, 2023 at 07:20:31PM +0000, Danny van Heumen wrote:
On Nov 21, 2023, 4:59 PM, Steve McIntyre < steve@einval.com> wrote:
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.
Debian's standard installation setup works here as expected. If you
want to break that, then I think it's up to you to handle the
consequences I'm afraid. You're already modified the fstab to do
what you want, you get to make the other changes you want too. OK?
--
Steve McIntyre, Cambridge, UK. steve@einval.com
The two hard things in computing:
* naming things
* cache invalidation
* off-by-one errors -- Stig Sandbeck Mathisen
I noticed that the mount-configuration in `/etc/fstab`, by default, relies on an *implicit* assumption for the ownership of the ESP to /boot/efi, i.e. 'root' (uid 0) only because it is executed as part of the boot process.
I' m afraid I have to read much more about d-i
Especially partitioning.
But where to start?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 483 |
Nodes: | 16 (2 / 14) |
Uptime: | 16:14:53 |
Calls: | 9,617 |
Calls today: | 3 |
Files: | 13,692 |
Messages: | 6,156,370 |