From: Till Kamppeter Date: Sat, 9 Oct 2021 22:34:43 +0000 (+0200) Subject: cupsd: Added debug log message if admin access from own utility is accepted X-Git-Tag: v2.4b1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b7da9cd832a7653508b1c584adb0f2ff2ae7448;p=thirdparty%2Fcups.git cupsd: Added debug log message if admin access from own utility is accepted On Snap mediation there is always a debug message telling why the administrative task was accepted or denied, it was only missing if the client is our CUPS Snap itself. --- diff --git a/scheduler/auth.c b/scheduler/auth.c index 954e5be58d..938dbfa2f2 100644 --- a/scheduler/auth.c +++ b/scheduler/auth.c @@ -1993,7 +1993,10 @@ check_admin_access(cupsd_client_t *con) // I - Client connection // Allow access from "cups" snap... if (!strncmp(context, "snap.cups.", 10)) + { + cupsdLogClient(con, CUPSD_LOG_DEBUG, "Client from the CUPS Snap itself - allowed."); goto done; + } # if CUPS_SNAP && defined(HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC) /*