]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homed: downgrade quota message in containers
authorLennart Poettering <lennart@poettering.net>
Mon, 17 Aug 2020 16:19:30 +0000 (18:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 18 Aug 2020 10:40:57 +0000 (12:40 +0200)
quota syscalls and operations are typically prohibited in containers.
Let's not make noise about that, needlessly.

src/home/homed-manager.c

index 7d951bee3b1189be626fae638b4721228137deac..54761175c30af62dd5c5dd6e89427db5e20a1f19 100644 (file)
@@ -512,6 +512,8 @@ static int search_quota(uid_t uid, const char *exclude_quota_path) {
                 if (r < 0) {
                         if (ERRNO_IS_NOT_SUPPORTED(r))
                                 log_debug_errno(r, "No UID quota support on %s, ignoring.", where);
+                        else if (ERRNO_IS_PRIVILEGE(r))
+                                log_debug_errno(r, "UID quota support for %s prohibited, ignoring.", where);
                         else
                                 log_warning_errno(r, "Failed to query quota on %s, ignoring: %m", where);