You are not logged in.
Pages: 1
I use audit occasionally to watch different files and directories.
I have script in which I used a line similar to this:
auditctl -a always,exit -F arch=b64 -F dir="$HOME/TestDir" -F perm=rwxa -k temporary
and it worked just fine.
Now when I tried to use that script I get this small error:
dir can only be used with exit filter list
There was an error while processing parameters
If I use the old-style watch rule -
auditctl -w "$HOME/TestDir" -p perm=rwxa -k temporary
- there is no problem, but obviously I get the returned statement 'Old style watch rules are slower' (which is why I'm trying to do it the new way).
I was using the zen kernel, figured that might be causing some kind of issue, so I switched to the lts kernel - but unfortunately there is no difference.
Any ideas what I'm doing wrong and how to fix it?
Last edited by clime (2024-08-27 17:45:22)
Offline
Does "-a exit,always" work?
Does "auditctl -a exit,always -F dir="$HOME/TestDir" -F arch=b64 -F perm=rwxa -k temporary"?
Does downgrading audit to 4.0.1-3 fix it?
Offline
Does "-a exit,always" work?
Does "auditctl -a exit,always -F dir="$HOME/TestDir" -F arch=b64 -F perm=rwxa -k temporary"?
Does downgrading audit to 4.0.1-3 fix it?
Yes, thank you!
Downgrading the package allows both "-a exit,always" and "-a always,exit" to work.
I should've tried downgrading in the first place, thank you once again.
I should also mention that "-a exit,always" did not work before downgrading. It returned the following:
Append rule - bad keyword exit,always
There was an error while processing parameters
Should I report this issue somewhere?
I'm not sure exactly where would be best - I didn't find any other reports of this on google if anyone else is experiencing it.
Last edited by clime (2024-08-26 23:17:33)
Offline
Offline
Thanks.
Offline
Pages: 1