-
Notifications
You must be signed in to change notification settings - Fork 1
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
After update to 0.2 version some rules fail to load #9
Comments
Below is output from: |
Are you using the latest kernel patch? |
It's on linux 4.17 with latest SARA https://github.com/smeso/sara/releases/download/SARAv5/sara-4.17.y.patch |
I'm not able to reproduce this issue. Can you please send me your full kernel config and /etc/sara/ dir contents? Thank you for your help! |
I think I have found something: all below files are symlinks to
It seems SARA rule loading fails when two or more symlinks are pointing to the same file. I checked duplicate line like below and it works so it's symlink which causes this issue.
It also fails when I use real file and at least one symlink to it:
I created symlinks to other binaries and behavior was the same as with |
Yeah! Symlinks were the problem! |
I have following rules which cause
SARA: WXP: failed to load rules.
error message when I invokesaractl load
command.After downgrading to 0.1 version they work:
SARA: WXP: new rules loaded.
I have global flag set to
/* MPROTECT,VERBOSE
.Side note: it would be nice if SARA log which rules caused failure. I have several hundreds (migrated from pax) rules and it's wasn't easy to find relevant ones.
Side note 2: When I exec
saractl -vvv test
it errors with:The text was updated successfully, but these errors were encountered: