Commit fbe870a7 authored by Richard Guy Briggs's avatar Richard Guy Briggs Committed by Jens Axboe

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: 5bd2182d ("audit,io_uring,io-wq: add some basic audit support to io_uring")
Signed-off-by: default avatarRichard Guy Briggs <rgb@redhat.com>
Link: https://lore.kernel.org/r/b5dfdcd541115c86dbc774aa9dd502c964849c5f.1675282642.git.rgb@redhat.comAcked-by: default avatarPaul Moore <paul@paul-moore.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2f2bb1ff
...@@ -257,6 +257,7 @@ const struct io_issue_def io_issue_defs[] = { ...@@ -257,6 +257,7 @@ const struct io_issue_def io_issue_defs[] = {
.issue = io_fadvise, .issue = io_fadvise,
}, },
[IORING_OP_MADVISE] = { [IORING_OP_MADVISE] = {
.audit_skip = 1,
.prep = io_madvise_prep, .prep = io_madvise_prep,
.issue = io_madvise, .issue = io_madvise,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment