From 7fa2a936143b51a43760a978ae8b912c6441cf3a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 17 Aug 2020 18:19:30 +0200 Subject: [PATCH] homed: downgrade quota message in containers quota syscalls and operations are typically prohibited in containers. Let's not make noise about that, needlessly. (cherry picked from commit 5e5e11b8744fbe9dcd87a2d165f342dc9bcd4008) (cherry picked from commit 84e1ab74d274de2a43bfa4f67a81da97635fd27c) --- src/home/homed-manager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/home/homed-manager.c b/src/home/homed-manager.c index b1153f6236..02b2ba73cf 100644 --- a/src/home/homed-manager.c +++ b/src/home/homed-manager.c @@ -472,6 +472,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.", where); -- 2.25.1