- ausearch: correct search for DAEMON related events - allow hex digits when interpreting tty data Resolves: RHEL-82279 - Fix TTY hostname in log messages Resolves: RHEL-78323
15 lines
516 B
Diff
15 lines
516 B
Diff
diff --git a/lib/audit_logging.c b/lib/audit_logging.c
|
|
index f89a13bb0..70205b332 100644
|
|
--- a/lib/audit_logging.c
|
|
+++ b/lib/audit_logging.c
|
|
@@ -243,7 +243,8 @@ static const char *_get_hostname(const char *ttyn)
|
|
{
|
|
if (ttyn && ((strncmp(ttyn, "pts", 3) == 0) ||
|
|
(strncmp(ttyn, "tty", 3) == 0) ||
|
|
- (strncmp(ttyn, "/dev/tty", 8) == 0) )) {
|
|
+ (strncmp(ttyn, "/dev/tty", 8) == 0) ||
|
|
+ (strncmp(ttyn, "/dev/pts", 8) == 0) )) {
|
|
if (_host[0] == 0) {
|
|
gethostname(_host, HOSTLEN);
|
|
_host[HOSTLEN - 1] = 0;
|