1
0

added accepted in filter

This commit is contained in:
Daniel Tartavel 2020-05-25 17:40:20 +02:00
parent 104539f763
commit 18d7e878cf

8
main.c
View File

@ -12,8 +12,12 @@
#define HOSTNAME "localhost"
#define EVENT_SIZE (sizeof(struct inotify_event))
#define NONE 0
#define INFO 1
#define WARNING 2
#define DEBUG 3
int debug = 1;
int debug = INFO;
struct connexion
{
@ -413,7 +417,7 @@ int getprocinfo( struct connexion * conn )
null2space( str );
sprintf(conn->cmdline, "%s", str);
fclose(fh1);
if ((strstr(conn->cmdline, "pam") || strstr(conn->cmdline, "net")) != 0)
if ((strstr(conn->cmdline, "pam") || strstr(conn->cmdline, "net") || strstr(conn->cmdline, "accepted")) != 0)
{
retval = -1;
}