shishi-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU shishi branch, master, updated. shishi-1-0-2-11-ge644366


From: Mats Erik Andersson
Subject: [SCM] GNU shishi branch, master, updated. shishi-1-0-2-11-ge644366
Date: Fri, 19 Apr 2013 14:38:51 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU shishi".

http://git.savannah.gnu.org/cgit/shishi.git/commit/?id=e644366cab652b703fd2afd5a7b0883b69711b84

The branch, master has been updated
       via  e644366cab652b703fd2afd5a7b0883b69711b84 (commit)
      from  e08cdc5ee394fa0254f8f3c99d3e3d581568d8c7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e644366cab652b703fd2afd5a7b0883b69711b84
Author: Mats Erik Andersson <address@hidden>
Date:   Fri Apr 19 16:32:57 2013 +0200

    shishid: Redirect debug logging.
    
    Do not pollute the facility LOG_AUTH with messages
    of severity LOG_DEBUG stating traffic size or socket
    properties.  Send it to LOG_DAEMON instead.

-----------------------------------------------------------------------

Summary of changes:
 src/kdc.c    |    2 ++
 src/server.c |   37 ++++++++++++++++++++++++-------------
 2 files changed, 26 insertions(+), 13 deletions(-)

diff --git a/src/kdc.c b/src/kdc.c
index 2f04e9e..f060eca 100644
--- a/src/kdc.c
+++ b/src/kdc.c
@@ -184,6 +184,7 @@ asreq1 (Shishi_as * as)
       if (userdbkey == NULL)
        for (j = 0; j < nuserkeys; j++)
          {
+           /* Keep facility coordinated with 'AS-REQ as ...'.  */
            syslog (LOG_DEBUG,
                    "Matching client etype %d against user key etype %d",
                    etype, userkeys[j]->etype);
@@ -194,6 +195,7 @@ asreq1 (Shishi_as * as)
 
   if (userdbkey == NULL)
     {
+      /* Again keeping facility coordinated with 'AS-REQ as ...'.  */
       syslog (LOG_NOTICE, "No matching client keys for address@hidden",
              username, realm);
       rc = shishi_krberror_errorcode_set (handle, shishi_as_krberror (as),
diff --git a/src/server.c b/src/server.c
index 17ffc90..459723d 100644
--- a/src/server.c
+++ b/src/server.c
@@ -50,7 +50,8 @@ kdc_accept (struct listenspec *ls)
     strcpy (newls->addrname, "unknown address");
   asprintf (&newls->str, "%s (%s)", newls->addrname, ls->str);
 
-  syslog (LOG_DEBUG, "Accepted socket %d from socket %d as %s",
+  syslog (LOG_DEBUG | LOG_DAEMON,
+         "Accepted socket %d from socket %d as %s",
          newls->sockfd, ls->sockfd, newls->str);
 }
 
@@ -137,11 +138,13 @@ static void
 kdc_send (struct listenspec *ls)
 {
   if (ls->ai.ai_socktype == SOCK_DGRAM)
-    syslog (LOG_DEBUG, "Sending %d bytes to %s socket %d via UDP",
+    syslog (LOG_DEBUG | LOG_DAEMON,
+           "Sending %d bytes to %s socket %d via UDP",
            ls->bufpos, ls->clientaddrname, ls->sockfd);
   else
     {
-      syslog (LOG_DEBUG, "Sending %d bytes to %s socket %d via %s",
+      syslog (LOG_DEBUG | LOG_DAEMON,
+             "Sending %d bytes to %s socket %d via %s",
              ls->bufpos, ls->str, ls->sockfd, ls->usetls ? "TLS" : "TCP");
 
       if (ls->bufpos + 4 >= sizeof (ls->buf))
@@ -254,7 +257,8 @@ kdc_read (struct listenspec *ls)
 
   if (read_bytes == 0 && ls->ai.ai_socktype == SOCK_STREAM)
     {
-      syslog (LOG_DEBUG, "Peer %s disconnected on socket %d\n",
+      syslog (LOG_DEBUG | LOG_DAEMON,
+             "Peer %s disconnected on socket %d\n",
              ls->str, ls->sockfd);
       return -1;
     }
@@ -270,11 +274,13 @@ kdc_read (struct listenspec *ls)
       if (rc != 0)
        strcpy (ls->clientaddrname, "unknown address");
 
-      syslog (LOG_DEBUG, "Read %d bytes from %s on socket %d\n",
+      syslog (LOG_DEBUG | LOG_DAEMON,
+             "Read %d bytes from %s on socket %d\n",
              ls->bufpos, ls->clientaddrname, ls->sockfd);
     }
   else
-    syslog (LOG_DEBUG, "Read %d bytes from %s on socket %d\n",
+    syslog (LOG_DEBUG | LOG_DAEMON,
+           "Read %d bytes from %s on socket %d\n",
            ls->bufpos, ls->str, ls->sockfd);
 
   return 0;
@@ -297,7 +303,8 @@ kdc_ready (struct listenspec *ls)
     return 1;
 
   if (ls->ai.ai_socktype == SOCK_STREAM)
-    syslog (LOG_DEBUG, "Got %d bytes of %d bytes from %s on socket %d\n",
+    syslog (LOG_DEBUG | LOG_DAEMON,
+           "Got %d bytes of %d bytes from %s on socket %d\n",
            ls->bufpos, waitfor + 4, ls->str, ls->sockfd);
 
   return 0;
@@ -310,7 +317,8 @@ kdc_process (struct listenspec *ls)
   char *p;
   ssize_t plen;
 
-  syslog (LOG_DEBUG, "Processing %d bytes on socket %d",
+  syslog (LOG_DEBUG | LOG_DAEMON,
+         "Processing %d bytes on socket %d",
          ls->bufpos, ls->sockfd);
 
   if (ls->ai.ai_socktype == SOCK_DGRAM)
@@ -331,7 +339,8 @@ kdc_process (struct listenspec *ls)
       free (p);
     }
 
-  syslog (LOG_DEBUG, "Generated %d bytes response for socket %d",
+  syslog (LOG_DEBUG | LOG_DAEMON,
+         "Generated %d bytes response for socket %d",
          ls->bufpos, ls->sockfd);
 }
 
@@ -360,9 +369,10 @@ kdc_loop (void)
   signal (SIGTERM, ctrlc);
 
 #ifdef USE_STARTTLS
-  syslog (LOG_DEBUG, "Starting (GNUTLS `%s')", gnutls_check_version (NULL));
+  syslog (LOG_DEBUG | LOG_DAEMON, "Starting (GNUTLS `%s')",
+         gnutls_check_version (NULL));
 #else
-  syslog (LOG_DEBUG, "Starting (no TLS)");
+  syslog (LOG_DEBUG | LOG_DAEMON, "Starting (no TLS)");
 #endif
 
   while (!quit)
@@ -377,7 +387,8 @@ kdc_loop (void)
                {
                  maxfd = MAX (maxfd, ls->sockfd + 1);
                  if (!arg.quiet_flag)
-                   syslog (LOG_DEBUG, "Listening on %s (%s) socket %d\n",
+                   syslog (LOG_DEBUG | LOG_DAEMON,
+                           "Listening on %s (%s) socket %d\n",
                            ls->str, ls->addrname, ls->sockfd);
                  FD_SET (ls->sockfd, &readfds);
                }
@@ -410,5 +421,5 @@ kdc_loop (void)
          }
     }
 
-  syslog (LOG_DEBUG, "Shutting down");
+  syslog (LOG_DEBUG | LOG_DAEMON, "Shutting down");
 }


hooks/post-receive
-- 
GNU shishi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]