added accepted in filter
This commit is contained in:
parent
104539f763
commit
18d7e878cf
8
main.c
8
main.c
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user