Update notifications were received from the following packages:
util-linux-2.42.4-1.1.x86_64 (/var/adm/update-messages/util-linux-2.42.4-1.1-1)
View the notifications now? [y/n] (n): y
(Use arrows or pgUp/pgDown keys to scroll the text by lines or pages.)
Message from package util-linux:
New /etc/fstab limitations for mount(8)!
This update introduces significant security hardening that may
result in breaking or incompatible changes for unprivileged user
mounts. The following changes are permanent security hardening
measures and cannot be disabled. They apply to unprivileged
(non-root) users:
X-mount.nocanonicalize:
Paths must always be canonicalized for unprivileged users. The
X-mount.nocanonicalize option is now ignored for non-root users.
X-mount.subdir:
The X-mount.subdir feature for detached subdirectories is
disabled for kernel < 6.15 for unprivileged users due to inherent
race conditions.
Path canonicalization:
If LIBMOUNT_FORCE_MOUNT2 is set, mount target paths for user
mounts will no longer traverse directories writable by
unprivileged users to prevent TOCTOU races.
Future util-linux or kernel versions can remove these restrictions.
Follow the mount(8) man page.
As a regular user I’m not too sure what this all means, what the mount (8) man page is or where I might find it.
Can anyone shed any light on this?
Is is likely to change how I use the system?
Is it something to do with mounting drives etc?
Where can I read all about it?
The reference to the man page is fine but the text notice saying what was changed is completely incoherent. It does not even define the terms it is using.
How can you see what is changed (new or different) from a reference to 2100 line contiguous text file?
I’m with @jjis still wondering what is different with the mount comand.
Hm, you can search for the terms in the manpage. No need to read 1815 lines of text. Every text editor or browser has a search functionality nowadays. How ithe change affects you, depends on your use case. But you need to read yourself at least the few sentences found by the search function of your favourite text editor or browser…
man 8 mount:
X-mount.nocanonicalize[=type]
Allows disabling of canonicalization for mount source and target paths. By default, the mount command resolves all paths to their absolute paths without symlinks. However, this behavior may not be desired in
certain situations, such as when binding a mount over a symlink, or a symlink over a directory or another symlink. The optional argument type can be either "source" or "target" (mountpoint). If no type is
specified, then canonicalization is disabled for both types. This mount option does not affect the conversion of source tags (e.g. LABEL= or UUID=) and fstab processing.
The command-line option --no-canonicalize overrides this mount option and affects all path and tag conversions in all situations, but for backward compatibility, it does not modify open_tree(2) syscall flags and
does not allow the bind-mount over a symlink use case.
Note that mount(8) ignores this option for unprivileged (non-root) users. In restricted mode symbolic links are not followed in the target path at all, so a mount with a symbolic link in the target fails. Source
paths are only canonicalized when starting with /dev/. See section "Non-superuser mounts" above for more details.
Change notification:
X-mount.nocanonicalize:
Paths must always be canonicalized for unprivileged users. The
X-mount.nocanonicalize option is now ignored for non-root users.
man 8 mount:
X-mount.subdir=directory
Allow mounting a subdirectory of a filesystem instead of the root directory. This is effective only when a new instance of a filesystem is attached to the system. The option is silently ignored for operations
like remount, bind mount, or move.
For now, this feature is implemented by a temporary filesystem root-directory mount in an unshared namespace and then binding the sub-directory to the final mount point and unmounting the root of the filesystem.
The sub-directory mount shows up atomically for the rest of the system although it is implemented by multiple mount(2) syscalls.
Note that this feature will not work in session with an unshared private mount namespace (after unshare --mount) on old kernels or with mount(8) without support for file-descriptors-based mount kernel API. In
this case, you need unshare --mount --propagation shared.
For unprivileged (non-root) users, this feature requires Linux >= 6.15 where the subdirectory is opened directly on the detached mount tree.
This feature is EXPERIMENTAL.
Change notification:
X-mount.subdir:
The X-mount.subdir feature for detached subdirectories is
disabled for kernel < 6.15 for unprivileged users due to inherent
race conditions.
If you have none of the above mentioned options in your fstab, nothing will change for you.
You still don’t know if you are affected? Check your fstab if it contains any of the mentioned terms/options of the change notification. If none of these terms occur, you are not affected. If one or more of these terms occur, you are a slightly more advanced users, as these terms don’t add themselves to the fstab. You should know how to deal with the change as you added the options yourself to the fstab.
How to check the content of fstab: cat /etc/fstab
Example (not affected by the change as none of the terms/options of the change notification appear):
Thank you for taking the time to reply. I have had a look at cat /etc/fstab & it is all btrfs apart from 1 vfat which is a boot/efi. So I don’t think any of this X mount stuff is relevant to my system as far as I can tell. Also as @knurpht said it looks like it only applies in part to old kernels < 6.15.o & I’m on the latest one any way. So I think @shundhammer suggestion in the last post is probably correct & the way to go in my case as it seem like it is just an advisory. Unless anyone know any different?