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

Unable to set up pathes /usr/bin/* #327

Open
fdsc opened this issue Dec 15, 2024 · 0 comments
Open

Unable to set up pathes /usr/bin/* #327

fdsc opened this issue Dec 15, 2024 · 0 comments

Comments

@fdsc
Copy link

fdsc commented Dec 15, 2024

Linux Mint, the fapolicyd packet from repository (I don't know how to check the package version)
fapolicyd/noble,now 1.3.2+20231212+git973a86d1b4-1build2 amd64

rules.d.zip

In the file "10-f.rules" in "rules.d" (see attachement) I created rules

allow perm=execute uid=f : path=/usr/bin/cut
allow perm=execute uid=f : path=/bin/cut
allow perm=execute uid=f : path=/bin/bash
allow perm=execute uid=f : path=/usr/bin/bash

allow perm=open uid=f : all

deny_audit perm=any uid=f : all

But "bash" and "cut" for user not allowed. (su: failed to execute /bin/bash: Operation not permitted)
"ausearch -i -m fanotify" show <no matches>.
If I disable the "deny_audit perm=any uid=f : all" rule the "bash" and "cut" is allowed.

P.S.
if I add rule
"allow perm=execute uid=f : dir=/usr/bin/"
"bash" is not allowed

If I add
"allow perm=execute uid=f : dir=/usr"
"bash" is allowed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant