-
Notifications
You must be signed in to change notification settings - Fork 57
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
If no initial watched mount points then new mount points are not properly watched #254
Comments
The attached patch will resolve the problem. |
Please create PR. |
wjhunter3
added a commit
to wjhunter3/fapolicyd
that referenced
this issue
Jul 27, 2023
Move the block of code that initializes mark_flag out of the loop so that it's always initialized, even if no watched mount points are initially present.
stevegrubb
pushed a commit
that referenced
this issue
Aug 1, 2023
finally I was able to create a tmt test plan with tests with destructive potential [1] where one of the tests it testing this issue and I was actually able to reproduce it on rhel-8 but not rhel-9 which is interesting
|
wjhunter3
added a commit
to wjhunter3/fapolicyd
that referenced
this issue
Aug 11, 2023
Can this issue be closed? Looks like it might be solved but can't tell. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If there are no watched mount points when fapolicyd starts then new mount points are not properly watched. To re-create from a fresh install:
# systemctl stop fapolicyd
watch_fs = ramfs
# /usr/sbin/fapolicyd --debug
# mkdir /tmp/test
# mount -t ramfs /dev/ram0 /tmp/test
# cp /bin/ls /tmp/test
.
.
.
Mount change detected
Added /tmp/test mount point
(nothing more at this point)
# /usr/sbin/fapolicyd --debug
# /tmp/test/ls
.
.
.
added /tmp/test mount point
Starting to listen for events
rule=2 dec=allow perm=execute auid=0 pid=39632 exe=/usr/bin/bash : path=/tmp/test/ls ftype=application/x-executable trust=0
rule=2 dec=allow perm=open auid=0 pid=39632 exe=/usr/bin/bash : path=/tmp/test/ls ftype=application/x-executable trust=0
The text was updated successfully, but these errors were encountered: