Blame SOURCES/screen-STIG-GEN003660.patch

27eff6
diff --git a/src/attacher.c b/src/attacher.c
27eff6
index 2565a0f..9e916eb 100644
27eff6
--- a/src/attacher.c
27eff6
+++ b/src/attacher.c
27eff6
@@ -37,6 +37,10 @@
27eff6
 
27eff6
 #include <pwd.h>
27eff6
 
27eff6
+#ifndef NOSYSLOG
27eff6
+#include <syslog.h>
27eff6
+#endif
27eff6
+
27eff6
 static int WriteMessage __P((int, struct msg *));
27eff6
 static sigret_t AttacherSigInt __P(SIGPROTOARG);
27eff6
 #if defined(SIGWINCH) && defined(TIOCGWINSZ)
27eff6
@@ -1001,6 +1005,9 @@ screen_builtin_lck()
27eff6
       bzero(cp1, strlen(cp1));
27eff6
     }
27eff6
   bzero(cp1, strlen(cp1));
27eff6
+#ifndef NOSYSLOG
27eff6
+  syslog(LOG_AUTHPRIV | LOG_NOTICE, "authentication success; logname=%s uid=%d", ppp->pw_name, ppp->pw_uid);
27eff6
+#endif
27eff6
   debug("password ok.\n");
27eff6
 }
27eff6