mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 18:55:09 +03:00
util: improve comments why we ignore EACCES and EPERM
Follow-up for ef454fd193
(#9848).
This commit is contained in:
parent
06fc4324b8
commit
53c442ef63
@ -544,7 +544,14 @@ int bind_remount_recursive_with_mountinfo(const char *prefix, bool ro, char **bl
|
||||
if (IN_SET(r, 0, -ENOENT))
|
||||
continue;
|
||||
if (IN_SET(r, -EACCES, -EPERM)) {
|
||||
/* Even if root user invoke this, FUSE or NFS mount points may not be acceessed. */
|
||||
/* Even if root user invoke this, submounts under private FUSE or NFS mount points
|
||||
* may not be acceessed. E.g.,
|
||||
*
|
||||
* $ bindfs --no-allow-other ~/mnt/mnt ~/mnt/mnt
|
||||
* $ bindfs --no-allow-other ~/mnt ~/mnt
|
||||
*
|
||||
* Then, root user cannot access the mount point ~/mnt/mnt.
|
||||
* In such cases, the submounts are ignored, as we have no way to manage them. */
|
||||
log_debug_errno(r, "Failed to determine '%s' is mount point or not, ignoring: %m", x);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user