Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exclude regex beginning with word doesn't work #49

Closed
arafatx opened this issue Sep 15, 2019 · 2 comments
Closed

exclude regex beginning with word doesn't work #49

arafatx opened this issue Sep 15, 2019 · 2 comments
Labels
support Usage support question/request

Comments

@arafatx
Copy link

arafatx commented Sep 15, 2019

I'm trying to exclude the following file autogenerated with the name begin with session_

!/home/root/tmp/^session_.+$

example: session_jdskaj293829jdks, session_92ujds29030jsd

and the system still notifies new file added or changed beginning with the name session_ at that directory.

Am I missing something?

@hvhaugwitz
Copy link
Member

Your regular expression is wrong. ^ matches the starting position within a string, however the string starts with /home not with session_. Apart from that AIDE adds an implict ^ in front of each regular expression (as documented in the aide.conf manual page).

Please contact the AIDE user mailing list (https://www.ipi.fi/mailman/listinfo/aide) for any further question about the usage of AIDE.

@arafatx
Copy link
Author

arafatx commented Sep 16, 2019

Thanks for pointing out that AIDE adds implicit ^. I couldn't find this manual in my existing aide.conf. Solved. TQVM

@hvhaugwitz hvhaugwitz added the support Usage support question/request label Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Usage support question/request
Projects
None yet
Development

No branches or pull requests

2 participants