X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind-user.c;h=304e6b512915f7ea4b00f7dabdf00737ff7b063c;hb=d2dedf1570f8ab5217aec3b26bf51d1d34accbde;hp=8a84a8f80d5accd2fb62c971a1bfb1eefc48f497;hpb=e271d1f29638c009e455a6e06e0865e01cf26f86;p=elogind.git diff --git a/src/login/logind-user.c b/src/login/logind-user.c index 8a84a8f80..304e6b512 100644 --- a/src/login/logind-user.c +++ b/src/login/logind-user.c @@ -362,14 +362,12 @@ static int user_mkdir_runtime_path(User *u) { r = mount("tmpfs", u->runtime_path, "tmpfs", MS_NODEV|MS_NOSUID, t); if (r < 0) { - if (errno != EPERM) { + if (errno != EPERM && errno != EACCES) { r = log_error_errno(errno, "Failed to mount per-user tmpfs directory %s: %m", u->runtime_path); goto fail; } - /* Lacking permissions, maybe - * CAP_SYS_ADMIN-less container? In this case, - * just use a normal directory. */ + log_debug_errno(errno, "Failed to mount per-user tmpfs directory %s, assuming containerized execution, ignoring: %m", u->runtime_path); r = chmod_and_chown(u->runtime_path, 0700, u->uid, u->gid); if (r < 0) {