diff options
| author | Amir Goldstein <[email protected]> | 2024-11-15 15:30:16 +0000 |
|---|---|---|
| committer | Jan Kara <[email protected]> | 2024-12-10 11:03:16 +0000 |
| commit | 318652e07fa5b1743d08eeccd69a1f47f2c15710 (patch) | |
| tree | 368f2283af2d2a436bf73a8e24ad7f9f9779ea1e /security/selinux/hooks.c | |
| parent | fsnotify: opt-in for permission events at file open time (diff) | |
| download | kernel-318652e07fa5b1743d08eeccd69a1f47f2c15710.tar.gz kernel-318652e07fa5b1743d08eeccd69a1f47f2c15710.zip | |
fsnotify: check if file is actually being watched for pre-content events on open
So far, we set FMODE_NONOTIFY_ flags at open time if we know that there
are no permission event watchers at all on the filesystem, but lack of
FMODE_NONOTIFY_ flags does not mean that the file is actually watched.
For pre-content events, it is possible to optimize things so that we
don't bother trying to send pre-content events if file was not watched
(through sb, mnt, parent or inode itself) on open. Set FMODE_NONOTIFY_
flags according to that.
Signed-off-by: Amir Goldstein <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Link: https://patch.msgid.link/2ddcc9f8d1fde48d085318a6b5a889289d8871d8.1731684329.git.josef@toxicpanda.com
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
