]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
cupsd: Added debug log message if admin access from own utility is accepted
authorTill Kamppeter <till.kamppeter@gmail.com>
Sat, 9 Oct 2021 22:34:43 +0000 (00:34 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Sat, 9 Oct 2021 22:34:43 +0000 (00:34 +0200)
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.

scheduler/auth.c

index 954e5be58dce49c392b2cc69f662e61b090647d1..938dbfa2f2fd517f1836b239286ee83b5ae6a8c4 100644 (file)
@@ -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)
  /*