diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-04-07 18:31:48 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-04-15 09:49:18 +0000 |
commit | bbf7a4e878ed6828d13c7029c128a7e60dc25391 (patch) | |
tree | cd867e0427d9e79dd617063fa1e0833d9850b3fb /sys/kern/kern_descrip.c | |
parent | f9b923af34a6749c7703b957742f33cc02a485a2 (diff) | |
download | src-bbf7a4e878ed6828d13c7029c128a7e60dc25391.tar.gz src-bbf7a4e878ed6828d13c7029c128a7e60dc25391.zip |
O_PATH: allow vnode kevent filter on such files
if VREAD access is checked as allowed during open
Requested by: wulf
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D29323
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r-- | sys/kern/kern_descrip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index a28e94634326..30ac40ffe296 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -4988,7 +4988,7 @@ struct fileops path_fileops = { .fo_truncate = badfo_truncate, .fo_ioctl = badfo_ioctl, .fo_poll = path_poll, - .fo_kqfilter = badfo_kqfilter, + .fo_kqfilter = vn_kqfilter_opath, .fo_stat = vn_statfile, .fo_close = path_close, .fo_chmod = badfo_chmod, |