summaryrefslogtreecommitdiff
path: root/io_uring/opdef.c
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2023-02-01 23:33:33 +0300
committerJens Axboe <axboe@kernel.dk>2023-02-11 02:00:30 +0300
commitfbe870a72fd1ddc5e08c23764e23e5766f54aa87 (patch)
treee89e303cde1bba87784cd37564adf0414973b8f9 /io_uring/opdef.c
parent2f2bb1ffc9983e227424d0787289da5483b0c74f (diff)
downloadlinux-fbe870a72fd1ddc5e08c23764e23e5766f54aa87.tar.xz
io_uring,audit: don't log IORING_OP_MADVISE
fadvise and madvise both provide hints for caching or access pattern for file and memory respectively. Skip them. Fixes: 5bd2182d58e9 ("audit,io_uring,io-wq: add some basic audit support to io_uring") Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Link: https://lore.kernel.org/r/b5dfdcd541115c86dbc774aa9dd502c964849c5f.1675282642.git.rgb@redhat.com Acked-by: Paul Moore <paul@paul-moore.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/opdef.c')
-rw-r--r--io_uring/opdef.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/opdef.c b/io_uring/opdef.c
index 5238ecd7af6a..cca7c5b55208 100644
--- a/io_uring/opdef.c
+++ b/io_uring/opdef.c
@@ -257,6 +257,7 @@ const struct io_issue_def io_issue_defs[] = {
.issue = io_fadvise,
},
[IORING_OP_MADVISE] = {
+ .audit_skip = 1,
.prep = io_madvise_prep,
.issue = io_madvise,
},