summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-08-11 22:47:22 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-08-20 10:16:09 +0200
commit53c442ef634ecc0e29de046a2c39114013004a57 (patch)
tree61bc92bd0539592642e22955dccf2c35a6d07ffe /src/basic
parent06fc4324b8e171a4403a37df5672881c29d8e17b (diff)
downloadsystemd-53c442ef634ecc0e29de046a2c39114013004a57.tar.gz
util: improve comments why we ignore EACCES and EPERM
Follow-up for ef454fd1936813fa45d3e3b459d43fa30be7bf49 (#9848).
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/mount-util.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/basic/mount-util.c b/src/basic/mount-util.c
index 62f1ed4d74..1f9590ccb6 100644
--- a/src/basic/mount-util.c
+++ b/src/basic/mount-util.c
@@ -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;
}